projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa98192
)
bcache: closures: move control bits one bit right
author
Michael Lyle
<mlyle@lyle.org>
Tue, 9 Jan 2018 19:13:23 +0000
(11:13 -0800)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 9 Jan 2018 19:18:51 +0000
(12:18 -0700)
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 <mlyle@lyle.org>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/closure.h
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/closure.h
b/drivers/md/bcache/closure.h
index
392a87c
..
3b9dfc9
100644
(file)
--- 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 << 2
7
),
- CLOSURE_DESTRUCTOR = (1U << 2
7
),
- CLOSURE_WAITING = (1U << 2
9
),
- CLOSURE_RUNNING = (1U << 3
1
),
+ CLOSURE_BITS_START = (1U << 2
6
),
+ CLOSURE_DESTRUCTOR = (1U << 2
6
),
+ CLOSURE_WAITING = (1U << 2
8
),
+ CLOSURE_RUNNING = (1U << 3
0
),
};
#define CLOSURE_GUARD_MASK \