OSDN Git Service

NFS41: make sure sending LAYOUTRETURN before close if marked so
authorPeng Tao <tao.peng@primarydata.com>
Wed, 19 Aug 2015 05:49:19 +0000 (13:49 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 19 Aug 2015 15:29:25 +0000 (10:29 -0500)
commite755d638e91be254d441602e8d7d9f1d9c944556
tree33f151fed95bc23bdd1c906c3c918c75e33642b6
parent36319608e28701c07cad80ae3be8b0fdfb1ab40f
NFS41: make sure sending LAYOUTRETURN before close if marked so

If layout is marked by NFS_LAYOUT_RETURN_BEFORE_CLOSE, we should always
send LAYOUTRETURN before close, and we don't need to do ROC drain if we
do send LAYOUTRETURN.

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