mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: Kent Overstreet <[email protected]> Cc: linux-stable <[email protected]> # >= v3.10 Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2f6cf0de02
commit
6d9d21e35f
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ static void do_journal_discard(struct cache *ca)
|
|||
return;
|
||||
}
|
||||
|
||||
switch (atomic_read(&ja->discard_in_flight) == DISCARD_IN_FLIGHT) {
|
||||
switch (atomic_read(&ja->discard_in_flight)) {
|
||||
case DISCARD_IN_FLIGHT:
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue