NFS: Fix a hang in the writeback path
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 25 Mar 2011 18:15:11 +0000 (14:15 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 27 Mar 2011 15:48:07 +0000 (17:48 +0200)
Now that the inode scalability patches have been merged, it is no longer
safe to call igrab() under the inode->i_lock.
Now that we no longer call nfs_clear_request() until the nfs_page is
being freed, we know that we are always holding a reference to the
nfs_open_context, which again holds a reference to the path, and so
the inode cannot be freed until the last nfs_page has been removed
from the radix tree and freed.

We can therefore skip the igrab()/iput() altogether.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found