public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] NFSv4: deal with v4.0 servers that request confirmation on reclaim-type opens
@ 2018-11-30 17:41 Scott Mayhew
  2018-11-30 17:41 ` [PATCH] " Scott Mayhew
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Mayhew @ 2018-11-30 17:41 UTC (permalink / raw)
  To: trond.myklebust, anna.schumaker; +Cc: linux-nfs

A Red Hat customer started having problems with open reclaims after a
kernel upgrade.  It turns out that the customer's NFS server is setting
the OPEN4_RESULT_CONFIRM in response to an OPEN(CLAIM_PREVIOUS), which
is not permitted by RFC 7530.

The client used to be able to handle that because nfs4_open_prepare() used
to copy the filehandle from the OPEN args to the OPEN results when doing
an open by filehandle.  That copy was removed by commit 4e2fcac77390
"nfsv4: Use correct inode in _nfs4_opendata_to_nfs4_state()".

It looks to me like adding the copy back in would not affect the
behavior of the nfs4_opendata_get_inode() helper that was added in
4e2fcac77390 (it uses the filehandle to look up the inode when doing an
open by name)... so this patch adds the copy back in and also adds a
warning in the event that the client does receive OPEN4_RESULT_CONFIRM
in response to an OPEN(CLAIM_PREVIOUS).

Scott Mayhew (1):
  NFSv4: deal with v4.0 servers that request confirmation on
    reclaim-type opens

 fs/nfs/nfs4proc.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-30 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-30 17:41 [PATCH 0/1] NFSv4: deal with v4.0 servers that request confirmation on reclaim-type opens Scott Mayhew
2018-11-30 17:41 ` [PATCH] " Scott Mayhew
2018-11-30 18:48   ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox