projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa61a9
)
bcache: Fix to remove the rcu_sched stalls.
author
Surbhi Palande
<sap@daterainc.com>
Thu, 10 Apr 2014 23:09:51 +0000
(16:09 -0700)
committer
Kent Overstreet
<kmo@daterainc.com>
Mon, 4 Aug 2014 22:23:02 +0000
(15:23 -0700)
while loop was executing infinitely.
This fix ends the while loop gracefully.
Signed-off-by: Surbhi Palande <sap@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/journal.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/journal.c
b/drivers/md/bcache/journal.c
index 363b88131f011ceea51bc6b1ebfe542e777347cd..ead001c9bed8c52be18feaf7504f6ee8caf92d08 100644
(file)
--- a/
drivers/md/bcache/journal.c
+++ b/
drivers/md/bcache/journal.c
@@
-194,7
+194,8
@@
int bch_journal_read(struct cache_set *c, struct list_head *list)
continue;
bsearch:
/* Binary search */
- m = r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
+ m = l;
+ r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
pr_debug("starting binary search, l %u r %u", l, r);
while (l + 1 < r) {