[PATCH] afs: Remove erroneous seq |= 1 in volume lookup loop
From: lirongqing
Date: Thu Jul 31 2025 - 04:09:55 EST
From: Li RongQing <lirongqing@xxxxxxxxx>
The seq |= 1 operation is incorrect here because seq has been
increased at start, it will be odd in next iteration and cause
lock operation
Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
---
fs/afs/callback.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/afs/callback.c b/fs/afs/callback.c
index 69e1dd5..2c0d274 100644
--- a/fs/afs/callback.c
+++ b/fs/afs/callback.c
@@ -140,7 +140,6 @@ static struct afs_volume *afs_lookup_volume_rcu(struct afs_cell *cell,
break;
if (!need_seqretry(&cell->volume_lock, seq))
break;
- seq |= 1; /* Want a lock next time */
}
done_seqretry(&cell->volume_lock, seq);
--
2.9.4