From 69e5a5741f74a22db6fe823852415fae049c5653 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Mon, 14 Jul 2025 17:58:29 +0200 Subject: nfs: nfs_attempt_rename() deadlocks performing an exclusive rename whilst attempting to lock an already held mutex. --- nfs/ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nfs/ops.c') diff --git a/nfs/ops.c b/nfs/ops.c index 90cc9199..0d846647 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -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) -- cgit v1.2.3