Skip to contentSkip to conversation

bcache: closures: move control bits one bit right

PATCH Applied Michael Lyle 2 participants 2 messages Jan 9, 2018

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

PATCH 1/1 bcache: closures: move control bits one bit right

Otherwise, architectures that do negated adds of atomics (e.g. s390) to do atomic_sub fail in closure_set_stopped.

---
 drivers/md/bcache/closure.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/md/bcache/closure.h +4 -4
index 392a87cf1b92..3b9dfc9962ad 100644
@@ -127,10 +127,10 @@ enum closure_state {
 	 * annotate where references are being transferred.
 	 */
 
-	CLOSURE_BITS_START	= (1U << 27),
-	CLOSURE_DESTRUCTOR	= (1U << 27),
-	CLOSURE_WAITING		= (1U << 29),
-	CLOSURE_RUNNING		= (1U << 31),
+	CLOSURE_BITS_START	= (1U << 26),
+	CLOSURE_DESTRUCTOR	= (1U << 26),
+	CLOSURE_WAITING		= (1U << 28),
+	CLOSURE_RUNNING		= (1U << 30),
 };
 
 #define CLOSURE_GUARD_MASK					\
Signature · 1 line
2.14.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Michael Lyle

Otherwise, architectures that do negated adds of atomics (e.g. s390) to do atomic_sub fail in closure_set_stopped.

Applied, thanks for fixing that up.

Signature · 1 line
Jens Axboe