diff options
| author | Benjamin Coddington <[email protected]> | 2022-10-19 16:09:18 +0000 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2022-10-27 19:52:10 +0000 |
| commit | f5ea16137a3fa2858620dc9084466491c128535f (patch) | |
| tree | 370281a73440a4f3c50daa885abf2b4a397a8f00 /lib/test-string_helpers.c | |
| parent | SUNRPC: Fix null-ptr-deref when xps sysfs alloc failed (diff) | |
| download | kernel-f5ea16137a3fa2858620dc9084466491c128535f.tar.gz kernel-f5ea16137a3fa2858620dc9084466491c128535f.zip | |
NFSv4: Retry LOCK on OLD_STATEID during delegation return
There's a small window where a LOCK sent during a delegation return can
race with another OPEN on client, but the open stateid has not yet been
updated. In this case, the client doesn't handle the OLD_STATEID error
from the server and will lose this lock, emitting:
"NFS: nfs4_handle_delegation_recall_error: unhandled error -10024".
Fix this by sending the task through the nfs4 error handling in
nfs4_lock_done() when we may have to reconcile our stateid with what the
server believes it to be. For this case, the result is a retry of the
LOCK operation with the updated stateid.
Reported-by: Gonzalo Siero Humet <[email protected]>
Signed-off-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
