Jens Axboe c8123f8c9c block: add cond_resched() to potentially long running ioctl discard loop
When mkfs issues a full device discard and the device only
supports discards of a smallish size, we can loop in
blkdev_issue_discard() for a long time. If preempt isn't enabled,
this can turn into a softlock situation and the kernel will
start complaining.

Add an explicit cond_resched() at the end of the loop to avoid
that.

Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-02-12 09:36:37 -07:00
..
2013-11-08 08:59:58 -07:00
2013-11-23 22:33:47 -08:00
2014-02-10 09:29:00 -07:00
2014-01-08 13:05:09 -08:00
2014-02-10 09:27:31 -07:00
2013-11-23 22:33:47 -08:00