projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6cf0d
)
bcache: Fix a dumb journal discard bug
author
Kent Overstreet
<kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:27 +0000
(23:17 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:43 +0000
(14:41 -0700)
That switch statement was obviously wrong, leading to some sort of weird
spinning on rare occasion with discards enabled...
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bcache/journal.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/journal.c
b/drivers/md/bcache/journal.c
index
ba95ab8
..
c0017ca
100644
(file)
--- a/
drivers/md/bcache/journal.c
+++ b/
drivers/md/bcache/journal.c
@@
-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;