diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 0dc3650c7f4c..a577ec928204 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2558,7 +2558,7 @@ static int dm_wait_for_bios_completion(struct mapped_device *md, unsigned int ta break; if (signal_pending_state(task_state, current)) { - r = -EINTR; + r = -ERESTARTSYS; break; } @@ -2583,7 +2583,7 @@ static int dm_wait_for_completion(struct mapped_device *md, unsigned int task_st break; if (signal_pending_state(task_state, current)) { - r = -EINTR; + r = -ERESTARTSYS; break; }