mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 07:30:16 +00:00
[PATCH] nfsd4: always update stateid on open
An OPEN from the same client/open stateowner requires a stateid update because of the share/deny access update. Signed-off-by: Andy Adamson <andros@citi.umich.edu> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e66770cd7b
commit
444c2c07c2
@ -1820,6 +1820,7 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf
|
||||
status = nfs4_upgrade_open(rqstp, current_fh, stp, open);
|
||||
if (status)
|
||||
goto out;
|
||||
update_stateid(&stp->st_stateid);
|
||||
} else {
|
||||
/* Stateid was not found, this is a new OPEN */
|
||||
int flags = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user