pnfs: add layout to client list before sending rpc
authorFred Isaman <iisaman@netapp.com>
Thu, 6 Jan 2011 11:36:26 +0000 (11:36 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jan 2011 19:46:32 +0000 (14:46 -0500)
commit2130ff663633e8a57921779ebfe62fc39d5585ec
treee100ef526b266a45ed3216be087d144df8cdbaed
parentcf7d63f1f9895713551df2e6d18b006f8af26e91
pnfs: add layout to client list before sending rpc

Since this list will be used to search for layouts to recall,
this is necessary to avoid a race where the recall comes in,
sees there is nothing in the client list, and prepares to return
NOMATCHING, while the LAYOUTGET gets processed before the recall
updates the stateid.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c