summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorPankaj Raghav <p.raghav@samsung.com>2023-06-14 16:35:38 +0300
committerJens Axboe <axboe@kernel.dk>2023-06-14 20:13:07 +0300
commit6dd4423f3f247b6f0ecb828cf62ea2bc4604f0b5 (patch)
treecf97e74081f724a42db044f3e3b6a4a4f034b870 /drivers/block
parent30654614f3d27230200b1650f6025a2ce67900b4 (diff)
downloadlinux-6dd4423f3f247b6f0ecb828cf62ea2bc4604f0b5.tar.xz
brd: use cond_resched instead of cond_resched_rcu
The body of the loop is run without RCU lock held. Use the regular cond_resched() instead of cond_resched_rcu(). Fixes: 786bb0245881 ("brd: use XArray instead of radix-tree to index backing pages") Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20230614133538.1279369-1-p.raghav@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/brd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 2f71376afc71..970bd6ff38c4 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -111,7 +111,7 @@ static void brd_free_pages(struct brd_device *brd)
xa_for_each(&brd->brd_pages, idx, page) {
__free_page(page);
- cond_resched_rcu();
+ cond_resched();
}
xa_destroy(&brd->brd_pages);