From: Michael Lyle Date: Tue, 9 Jan 2018 19:13:23 +0000 (-0800) Subject: bcache: closures: move control bits one bit right X-Git-Tag: v4.19~1763^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3609c471a1b86bffc812d8a2f0299892aa11a5e6;p=platform%2Fkernel%2Flinux-rpi.git 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. Signed-off-by: Michael Lyle Cc: Kent Overstreet Reported-by: kbuild test robot Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/closure.h b/drivers/md/bcache/closure.h index 392a87c..3b9dfc9 100644 --- a/drivers/md/bcache/closure.h +++ b/drivers/md/bcache/closure.h @@ -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 \