aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-08-19 23:30:00 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-20 00:01:54 -0400
commit2a606188c55990fa65cba3fd9b64f2b7542b7692 (patch)
tree2ad63457826e93f3f922f4e1a49dc77449a9c644 /include/linux/nfs_xdr.h
parentc740624989eb87fa7cbd1b5338cef01dd49f1f29 (diff)
NFSv4: Enable delegated opens even when reboot recovery is pending
Unlike the previous attempt, this takes into account the fact that we may be calling it from the recovery thread itself. Detect this by looking at what kind of open we're doing, and checking the state of the NFS_DELEGATION_NEED_RECLAIM if it turns out we're doing a reboot reclaim-type open. Cc: Olga Kornievskaia <aglo@umich.edu> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 7bbe50504211..b9b530409ff7 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -389,7 +389,7 @@ struct nfs_openargs {
389 const struct nfs_server *server; /* Needed for ID mapping */ 389 const struct nfs_server *server; /* Needed for ID mapping */
390 const u32 * bitmask; 390 const u32 * bitmask;
391 const u32 * open_bitmap; 391 const u32 * open_bitmap;
392 __u32 claim; 392 enum open_claim_type4 claim;
393 enum createmode4 createmode; 393 enum createmode4 createmode;
394 const struct nfs4_label *label; 394 const struct nfs4_label *label;
395}; 395};