Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
req->__sector = (sector_t) -1;
req->bio = req->biotail = NULL;
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);
req->cmd = (unsigned char *)cmd;
req->cmd_len = sizeof(struct nvme_command);