brd: use cond_resched instead of cond_resched_rcu
authorPankaj Raghav <p.raghav@samsung.com>
Wed, 14 Jun 2023 13:35:38 +0000 (15:35 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Jun 2023 17:13:07 +0000 (11:13 -0600)
commit6dd4423f3f247b6f0ecb828cf62ea2bc4604f0b5
treecf97e74081f724a42db044f3e3b6a4a4f034b870
parent30654614f3d27230200b1650f6025a2ce67900b4
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>
drivers/block/brd.c