pnfs: Add barrier to prevent lgopen using LAYOUTGET during recall
authorFred Isaman <fred.isaman@gmail.com>
Wed, 5 Oct 2016 13:37:12 +0000 (09:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:03:11 +0000 (15:03 -0400)
commitc49b5209f99abe082d3d4cd94f0ad924baea34ed
tree315980082bc9f161fd2363668f9f42c067aebee8
parent6e01260ceeca299b82d466660935534c5c909d54
pnfs: Add barrier to prevent lgopen using LAYOUTGET during recall

Since the LAYOUTGET on OPEN can be sent without prior inode information,
existing methods to prevent LAYOUTGET from being sent while processing
CB_LAYOUTRECALL don't work.  Track if a recall occurred while LAYOUTGET
was being sent, and if so ignore the results.

Signed-off-by: Fred Isaman <fred.isaman@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/callback_proc.c
fs/nfs/pnfs.c
include/linux/nfs_fs_sb.h
include/linux/nfs_xdr.h