Skip to content

Commit

Permalink
bcache: closures: move control bits one bit right
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Kent Overstreet <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
mlyle authored and axboe committed Jan 9, 2018
1 parent aa98192 commit 3609c47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/md/bcache/closure.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3609c47

Please sign in to comment.