提交 dbd810ab 编写于 作者: S Surbhi Palande 提交者: Kent Overstreet

bcache: Fix to remove the rcu_sched stalls.

while loop was executing infinitely.
This fix ends the while loop gracefully.
Signed-off-by: NSurbhi Palande <sap@daterainc.com>
Signed-off-by: NKent Overstreet <kmo@daterainc.com>
上级 9aa61a99
...@@ -194,7 +194,8 @@ int bch_journal_read(struct cache_set *c, struct list_head *list) ...@@ -194,7 +194,8 @@ int bch_journal_read(struct cache_set *c, struct list_head *list)
continue; continue;
bsearch: bsearch:
/* Binary search */ /* 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); pr_debug("starting binary search, l %u r %u", l, r);
while (l + 1 < r) { while (l + 1 < r) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册