NFSv4.1: Fix pnfs_put_lseg races
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 5 Feb 2015 22:27:39 +0000 (17:27 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 6 Feb 2015 04:44:18 +0000 (23:44 -0500)
pnfs_layoutreturn_free_lseg_async() can also race with inode put in
the general case. We can now fix this, and also simplify the code.

Cc: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c

diff --cc fs/nfs/pnfs.c
Simple merge