Commit 6d9d21e3 authored by Kent Overstreet's avatar Kent Overstreet Committed by Linus Torvalds

bcache: Fix a dumb journal discard bug

That switch statement was obviously wrong, leading to some sort of weird
spinning on rare occasion with discards enabled...
Signed-off-by: default avatarKent Overstreet <>
Cc: linux-stable <> # >= v3.10
Signed-off-by: default avatarLinus Torvalds <>
parent 2f6cf0de
......@@ -428,7 +428,7 @@ static void do_journal_discard(struct cache *ca)
switch (atomic_read(&ja->discard_in_flight) == DISCARD_IN_FLIGHT) {
switch (atomic_read(&ja->discard_in_flight)) {
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