]> git.baikalelectronics.ru Git - kernel.git/commit
brd: add cond_resched to brd_free_pages
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 9 May 2019 18:51:27 +0000 (12:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2019 18:51:27 +0000 (12:51 -0600)
commit3642d75f56b0a8682d92be2f67aa21e6a9454c1a
treec2e31826acd168dcbec573f6f5d60fc0d85aa7ca
parentdb6fd354c398d7ef634cde2f2dd7f549dc19ab11
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: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c