1. 26 4月, 2008 9 次提交
    • B
      ide: use ide_find_port() in legacy VLB host drivers (take 2) · e277f91f
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_QD_2ND_PORT host flag to indicate the need of skipping
        first ide_hwifs[] slot for the second port of QD65xx controller.
      
      * Handle this new host flag in ide_find_port_slot().
      
      * Convert legacy VLB host drivers to use ide_find_port().
      
      While at it:
      
      * Fix couple of printk()-s in qd65xx host driver to not use hwif->name.
      
      v2:
      * Fix qd65xx.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      e277f91f
    • B
      ide: merge ide_match_hwif() and ide_find_port() · fe80b937
      Bartlomiej Zolnierkiewicz 提交于
      * Change ide_match_hwif() argument from 'u8 bootable' to
        'struct ide_port_info *d'.
      
      * Move ide_match_hwif() to ide-probe.c from setup-pci.c and rename
        it to ide_find_port_slot().  Update some comments while at it.
      
      * ide_find_port() can be now just a wrapper for ide_find_port_slot().
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      fe80b937
    • B
      ide: remove PIO "downgrade" quirk · 078fdf78
      Bartlomiej Zolnierkiewicz 提交于
      No need for it nowadays so remove quirk code from ide_get_best_pio_mode()
      and IDE_HFLAG_PIO_DOWNGRADE host flag.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      078fdf78
    • B
      ide: IDE_HFLAG_BOOTABLE -> IDE_HFLAG_NON_BOOTABLE · 5e71d9c5
      Bartlomiej Zolnierkiewicz 提交于
      "bootable" should be the default behavior so replace
      IDE_HFLAG_BOOTABLE host flag with IDE_HFLAG_NON_BOOTABLE.
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5e71d9c5
    • B
      ide: cleanup ide_find_port() · 59bff5ba
      Bartlomiej Zolnierkiewicz 提交于
      Remove no longer needed matching against I/O base and 'base' argument.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      59bff5ba
    • J
      nfsd: don't allow setting ctime over v4 · e36cd4a2
      J. Bruce Fields 提交于
      Presumably this is left over from earlier drafts of v4, which listed
      TIME_METADATA as writeable.  It's read-only in rfc 3530, and shouldn't
      be modifiable anyway.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      e36cd4a2
    • J
      locks: don't call ->copy_lock methods on return of conflicting locks · 1a747ee0
      J. Bruce Fields 提交于
      The file_lock structure is used both as a heavy-weight representation of
      an active lock, with pointers to reference-counted structures, etc., and
      as a simple container for parameters that describe a file lock.
      
      The conflicting lock returned from __posix_lock_file is an example of
      the latter; so don't call the filesystem or lock manager callbacks when
      copying to it.  This also saves the need for an unnecessary
      locks_init_lock in the nfsv4 server.
      
      Thanks to Trond for pointing out the error.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      1a747ee0
    • W
      lockd: unlock lockd locks held for a certain filesystem · 17efa372
      Wendy Cheng 提交于
      Add /proc/fs/nfsd/unlock_filesystem, which allows e.g.:
      
      shell> echo /mnt/sfs1 > /proc/fs/nfsd/unlock_filesystem
      
      so that a filesystem can be unmounted before allowing a peer nfsd to
      take over nfs service for the filesystem.
      Signed-off-by: NS. Wendy Cheng <wcheng@redhat.com>
      Cc: Lon Hohberger  <lhh@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      
       fs/lockd/svcsubs.c          |   66 +++++++++++++++++++++++++++++++++++++++-----
       fs/nfsd/nfsctl.c            |   65 +++++++++++++++++++++++++++++++++++++++++++
       include/linux/lockd/lockd.h |    7 ++++
       3 files changed, 131 insertions(+), 7 deletions(-)
      17efa372
    • W
      lockd: unlock lockd locks associated with a given server ip · 4373ea84
      Wendy Cheng 提交于
      For high-availability NFS service, we generally need to be able to drop
      file locks held on the exported filesystem before moving clients to a
      new server.  Currently the only way to do that is by shutting down lockd
      entirely, which is often undesireable (for example, if you want to
      continue exporting other filesystems).
      
      This patch allows the administrator to release all locks held by clients
      accessing the client through a given server ip address, by echoing that
      address to a new file, /proc/fs/nfsd/unlock_ip, as in:
      
      shell> echo 10.1.1.2 > /proc/fs/nfsd/unlock_ip
      
      The expected sequence of events can be:
      1. Tear down the IP address
      2. Unexport the path
      3. Write IP to /proc/fs/nfsd/unlock_ip to unlock files
      4. Signal peer to begin take-over.
      
      For now we only support IPv4 addresses and NFSv2/v3 (NFSv4 locks are not
      affected).
      
      Also, if unmounting the filesystem is required, we assume at step 3 that
      clients using the given server ip are the only clients holding locks on
      the given filesystem; otherwise, an additional patch is required to
      allow revoking all locks held by lockd on a given filesystem.
      Signed-off-by: NS. Wendy Cheng <wcheng@redhat.com>
      Cc: Lon Hohberger  <lhh@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      
       fs/lockd/svcsubs.c          |   66 +++++++++++++++++++++++++++++++++++++++-----
       fs/nfsd/nfsctl.c            |   65 +++++++++++++++++++++++++++++++++++++++++++
       include/linux/lockd/lockd.h |    7 ++++
       3 files changed, 131 insertions(+), 7 deletions(-)
      4373ea84
  2. 25 4月, 2008 31 次提交