diff options
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 4aaffe05de94..6678cb2c2138 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1954,8 +1954,7 @@ static int dm_wait_for_completion(struct mapped_device *md, long task_state) if (!md_in_flight(md)) break; - if (task_state == TASK_INTERRUPTIBLE && - signal_pending(current)) { + if (signal_pending_state(task_state, current)) { r = -EINTR; break; } |