Commit 3609c471 authored by Michael Lyle's avatar Michael Lyle Committed by Jens Axboe

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: default avatarMichael Lyle <mlyle@lyle.org>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent aa98192d
...@@ -127,10 +127,10 @@ enum closure_state { ...@@ -127,10 +127,10 @@ enum closure_state {
* annotate where references are being transferred. * annotate where references are being transferred.
*/ */
CLOSURE_BITS_START = (1U << 27), CLOSURE_BITS_START = (1U << 26),
CLOSURE_DESTRUCTOR = (1U << 27), CLOSURE_DESTRUCTOR = (1U << 26),
CLOSURE_WAITING = (1U << 29), CLOSURE_WAITING = (1U << 28),
CLOSURE_RUNNING = (1U << 31), CLOSURE_RUNNING = (1U << 30),
}; };
#define CLOSURE_GUARD_MASK \ #define CLOSURE_GUARD_MASK \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment