NFSv4.1: Do not call pnfs_return_layout() from an rpciod context
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 11 Oct 2012 17:43:38 +0000 (13:43 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Oct 2012 14:49:43 +0000 (10:49 -0400)
commitd527e5c15de8de813cd0a2ad0b769f68c6226938
treeb96a57f9c6a628d66b605b9f7ef7e579b01a35b1
parent8fcdc31b3d09bc348ff9bf752ae1291828756cfa
NFSv4.1: Do not call pnfs_return_layout() from an rpciod context

Move the call to pnfs_return_layout() to the read and write rpc_release()
callbacks, so that it gets called from nfsiod, which is a more appropriate
context.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.h