diff options
author | Michael Kelly <mike@weatherwax.co.uk> | 2025-07-14 17:58:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-07-14 17:59:07 +0200 |
commit | 69e5a5741f74a22db6fe823852415fae049c5653 (patch) | |
tree | 8f9a5b593e238648ac236cab340f5e68e8c76819 /nfs/ops.c | |
parent | daaf662e2b5225882f0e072044f726549590e468 (diff) |
nfs: nfs_attempt_rename() deadlocks performing an exclusive rename
whilst attempting to lock an already held mutex.
Diffstat (limited to 'nfs/ops.c')
-rw-r--r-- | nfs/ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1453,6 +1453,7 @@ netfs_attempt_rename (struct iouser *cred, struct node *fromdir, if (err) return err; + pthread_mutex_unlock(&np->lock); err = netfs_attempt_link (cred, todir, np, toname, 1); netfs_nput (np); if (err) |