Skip to contentSkip to conversation

nfs: lock() vs unlock() typo

PATCH In review Dan Carpenter 2 participants 2 messages Mar 20, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: lock() vs unlock() typo

These should be spin_unlock() instead of spin_lock(). It's a typo.

fs/nfs/namespace.c +2 -2
index c0b8344..bf1c680 100644
@@ -98,7 +98,7 @@ rename_retry:
 		namelen--;
 	buflen -= namelen;
 	if (buflen < 0) {
-		spin_lock(&dentry->d_lock);
+		spin_unlock(&dentry->d_lock);
 		rcu_read_unlock();
 		goto Elong;
 	}
@@ -108,7 +108,7 @@ rename_retry:
 	rcu_read_unlock();
 	return end;
 Elong_unlock:
-	spin_lock(&dentry->d_lock);
+	spin_unlock(&dentry->d_lock);
 	rcu_read_unlock();
 	if (read_seqretry(&rename_lock, seq))
 		goto rename_retry;
#1 lore raw
Quoted 1 line · Dan Carpenter

These should be spin_unlock() instead of spin_lock(). It's a typo.

Gyah... Applied, thanks.