diff options
-rw-r--r-- | drivers/block/nvme-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 5a3f2235892a..a232dfc1cd4a 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c | |||
@@ -828,7 +828,7 @@ int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd, | |||
828 | 828 | ||
829 | set_current_state(TASK_KILLABLE); | 829 | set_current_state(TASK_KILLABLE); |
830 | nvme_submit_cmd(nvmeq, cmd); | 830 | nvme_submit_cmd(nvmeq, cmd); |
831 | schedule(); | 831 | schedule_timeout(timeout); |
832 | 832 | ||
833 | if (cmdinfo.status == -EINTR) { | 833 | if (cmdinfo.status == -EINTR) { |
834 | nvme_abort_command(nvmeq, cmdid); | 834 | nvme_abort_command(nvmeq, cmdid); |