]> www.infradead.org Git - users/dwmw2/linux.git/commit
NFSv4: Fix return value in nfs_finish_open()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 9 Aug 2019 16:15:07 +0000 (12:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:30 +0000 (07:18 +0200)
commitd29a04e98cdb2f17b64b51d5dcf5a6848e1ba2e5
treebf439f58d1f294165d7fc8da38274a5d3755bfd9
parentb8cb57c86f936b3a629d0e15819400a942c6831c
NFSv4: Fix return value in nfs_finish_open()

[ Upstream commit 9821421a291b548ef4369c6998745baa36ddecd5 ]

If the file turns out to be of the wrong type after opening, we want
to revalidate the path and retry, so return EOPENSTALE rather than
ESTALE.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/dir.c