Skip to content

Commit

Permalink
NVMe: Use requested sync command timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Keith Busch authored and Jens Axboe committed May 29, 2015
1 parent a0a931d commit f4ff414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/nvme-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ int __nvme_submit_sync_cmd(struct request_queue *q, struct nvme_command *cmd,
req->__sector = (sector_t) -1;
req->bio = req->biotail = NULL;

req->timeout = ADMIN_TIMEOUT;
req->timeout = timeout ? timeout : ADMIN_TIMEOUT;

req->cmd = (unsigned char *)cmd;
req->cmd_len = sizeof(struct nvme_command);
Expand Down

0 comments on commit f4ff414

Please sign in to comment.