projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288d722
)
nfs/localio: remove redundant suid/sgid handling
author
Mike Snitzer
<snitzer@hammerspace.com>
Thu, 3 Oct 2024 19:35:01 +0000
(15:35 -0400)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Fri, 8 Nov 2024 19:26:20 +0000
(14:26 -0500)
nfs_writeback_done() will take care of suid/sgid corner case.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/localio.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/localio.c
b/fs/nfs/localio.c
index 8f0ce82a677e1589092a30240d6e60a289d64a58..8d27a55209fca2b295048e9cdcaedf80bf1bfb3d 100644
(file)
--- a/
fs/nfs/localio.c
+++ b/
fs/nfs/localio.c
@@
-521,12
+521,7
@@
nfs_local_write_done(struct nfs_local_kiocb *iocb, long status)
}
if (status < 0)
nfs_reset_boot_verifier(inode);
- else if (nfs_should_remove_suid(inode)) {
- /* Deal with the suid/sgid bit corner case */
- spin_lock(&inode->i_lock);
- nfs_set_cache_invalid(inode, NFS_INO_INVALID_MODE);
- spin_unlock(&inode->i_lock);
- }
+
nfs_local_pgio_done(hdr, status);
}