]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: factor GETDEVICEINFO implementations
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Sep 2014 04:27:57 +0000 (21:27 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:03 +0000 (12:47 -0700)
commit476e76a2f79a3a45ea52453fe6f9adc51ab61d26
treea2f515ecbc46316adfd1b937d62eeb9a48957d1c
parentcf9173a9dd0e2068383ef0dff2bac3e7009296dc
pnfs: factor GETDEVICEINFO implementations

Add support to the common pNFS core to issue GETDEVICEINFO calls on
a device ID cache miss.  The code is taken from the well debugged
file layout implementation and calls out to the layoutdriver through
a new alloc_deviceid_node method.  The calling conventions for
nfs4_find_get_deviceid are changed so that all information needed to
send a GETDEVICEINFO request is passed to the common code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayout.c
fs/nfs/filelayout/filelayout.h
fs/nfs/filelayout/filelayoutdev.c
fs/nfs/objlayout/objio_osd.c
fs/nfs/objlayout/objlayout.c
fs/nfs/objlayout/objlayout.h
fs/nfs/pnfs.h
fs/nfs/pnfs_dev.c