Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5f1e5ad authored by Kent Overstreet's avatar Kent Overstreet Committed by Jens Axboe
Browse files

bcache: Add a cond_resched() call to gc



Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Tested-by: default avatarEric Wheeler <bcache@linux.ewheeler.net>
Cc: Kent Overstreet <kmo@daterainc.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2ef9ccbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1741,6 +1741,7 @@ static void bch_btree_gc(struct cache_set *c)
	do {
		ret = btree_root(gc_root, c, &op, &writes, &stats);
		closure_sync(&writes);
		cond_resched();

		if (ret && ret != -EAGAIN)
			pr_warn("gc failed!");