From: Pingfan Liu <piliu@xxxxxxxxxx> commit 0ca44fcef241768fd25ee763b3d203b9852f269b upstream. Otherwise the while() loop in dm_wq_work() can result in a "dead loop" on systems that have preemption disabled. This is particularly problematic on single cpu systems. Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Pingfan Liu <piliu@xxxxxxxxxx> Acked-by: Ming Lei <ming.lei@xxxxxxxxxx> Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/md/dm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2393,6 +2393,7 @@ static void dm_wq_work(struct work_struc break; submit_bio_noacct(bio); + cond_resched(); } }