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)
commit4ef2e4f84c523ebbc930ce05fa27b9b1350f4a4b
treea7c6f43fcf07eb6de7755152b38ae36d670910d5
parente4af440aaf390ac1d39b26ef6cf4a28bcb6a5979
NFSv4.1: Fix pnfs_put_lseg races

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