aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorSurbhi Palande <sap@daterainc.com>2014-04-10 19:09:51 -0400
committerKent Overstreet <kmo@daterainc.com>2014-08-04 18:23:02 -0400
commitdbd810ab678d262d3772d29b65844d7b20dc47bc (patch)
treee958c8231abe958987792b30bfa5b6bc7ab219db /drivers/md
parent9aa61a992acceeec0d1de2cd99938421498659d5 (diff)
bcache: Fix to remove the rcu_sched stalls.
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/journal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c
index 363b88131f01..ead001c9bed8 100644
--- 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)
194 continue; 194 continue;
195bsearch: 195bsearch:
196 /* Binary search */ 196 /* Binary search */
197 m = r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1); 197 m = l;
198 r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
198 pr_debug("starting binary search, l %u r %u", l, r); 199 pr_debug("starting binary search, l %u r %u", l, r);
199 200
200 while (l + 1 < r) { 201 while (l + 1 < r) {