NFSv4: Enable delegated opens even when reboot recovery is pending
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Aug 2015 03:30:00 +0000 (22:30 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Aug 2015 04:01:54 +0000 (23:01 -0500)
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>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h

Simple merge
Simple merge