]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: use layout driver in global device cache
authorBenny Halevy <bhalevy@panasas.com>
Tue, 24 May 2011 15:04:02 +0000 (18:04 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 17:52:31 +0000 (20:52 +0300)
commitff7938e9fba8a32e8c9e6aa5a63c2fe29261de8a
treef0f8a69c1586a8d24526223ed70a922c934f9b87
parent6e91f898b4bd942a26dce8ebe93aea331e3b11e7
NFSv4.1: use layout driver in global device cache

pnfs deviceids are unique per server, per layout type.
struct nfs_client is currently used to distinguish deviceids from
different nfs servers, yet these may clash between different layout
types on the same server.  Therefore, use the layout driver associated
with each deviceid at insertion time to look it up, unhash, or
delete it.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/callback_proc.c
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.h
fs/nfs/pnfs_dev.c