]> git.baikalelectronics.ru Git - kernel.git/commit
nfs/blocklayout: add SCSI layout support
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Mar 2016 19:46:15 +0000 (20:46 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 18 Mar 2016 15:38:17 +0000 (11:38 -0400)
commite6f000bda69a6524e9d2109ee138765b8ebc4251
tree2d4bb391919038cc05f167f0f82e679fc8fe655f
parent92737975322110ca72cc4c50a45f0a5384aaa7e5
nfs/blocklayout: add SCSI layout support

This is a trivial extension to the block layout driver to support the
new SCSI layouts draft.  There are three changes:

 - device identifcation through the SCSI VPD page.  This allows us to
   directly use the udev generated persistent device names instead of
   requiring an expensive lookup by crawling every block device node
   in /dev and reading a signature for it.
 - use of SCSI persistent reservations to protect device access and
   allow for robust fencing.  On the client sides this just means
   registering and unregistering a server supplied key.
 - an optimized LAYOUTCOMMIT payload that doesn't send unessecary
   fields to the server.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/blocklayout/blocklayout.h
fs/nfs/blocklayout/dev.c
fs/nfs/blocklayout/extent_tree.c
fs/nfs/blocklayout/rpc_pipefs.c