Skip to content
Commit 936b33f7 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Jens Axboe
Browse files

brd: add cond_resched to brd_free_pages



The loop that frees all the pages can take unbounded amount of time, so
add cond_resched() to it.

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cf12c672
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment