]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv2/v3: Fix error handling in nfs_atomic_open_v23()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 28 Oct 2025 21:27:43 +0000 (17:27 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 10 Nov 2025 19:30:45 +0000 (14:30 -0500)
commit85d2c2392ac6348e1171d627497034a341a250c1
tree61a95816e6c9d4094b9426e72c0bfb9fba8c9810
parent6a218b9c3183ed19d5703130025282cf20463d87
NFSv2/v3: Fix error handling in nfs_atomic_open_v23()

When nfs_do_create() returns an EEXIST error, it means that a regular
file could not be created. That could mean that a symlink needs to be
resolved. If that's the case, a lookup needs to be kicked off.

Reported-by: Stephen Abbene <sabbene87@gmail.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=220710
Fixes: 7c6c5249f061 ("NFS: add atomic_open for NFSv3 to handle O_TRUNC correctly.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/dir.c