diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-12-20 13:53:01 -0500 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2012-01-10 14:53:54 -0500 |
commit | ff976d724a74e4522e9ca2de1fb37ac4520f454f (patch) | |
tree | 6118b8c484f217fada77f6da2f5d6b2e34ef9ed0 /drivers/block | |
parent | eca18b2394a9387feeaf14cd884ddddd7a809d19 (diff) |
NVMe: Rename IO_TIMEOUT to NVME_IO_TIMEOUT
IO_TIMEOUT is a little too generic and might be used by other parts of
the kernel in the future.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 4517608c068f..1cc01872f6dc 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #define SQ_SIZE(depth) (depth * sizeof(struct nvme_command)) | 45 | #define SQ_SIZE(depth) (depth * sizeof(struct nvme_command)) |
46 | #define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion)) | 46 | #define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion)) |
47 | #define NVME_MINORS 64 | 47 | #define NVME_MINORS 64 |
48 | #define IO_TIMEOUT (5 * HZ) | 48 | #define NVME_IO_TIMEOUT (5 * HZ) |
49 | #define ADMIN_TIMEOUT (60 * HZ) | 49 | #define ADMIN_TIMEOUT (60 * HZ) |
50 | 50 | ||
51 | static int nvme_major; | 51 | static int nvme_major; |
@@ -524,7 +524,7 @@ static int nvme_submit_flush(struct nvme_queue *nvmeq, struct nvme_ns *ns, | |||
524 | static int nvme_submit_flush_data(struct nvme_queue *nvmeq, struct nvme_ns *ns) | 524 | static int nvme_submit_flush_data(struct nvme_queue *nvmeq, struct nvme_ns *ns) |
525 | { | 525 | { |
526 | int cmdid = alloc_cmdid(nvmeq, (void *)CMD_CTX_FLUSH, | 526 | int cmdid = alloc_cmdid(nvmeq, (void *)CMD_CTX_FLUSH, |
527 | special_completion, IO_TIMEOUT); | 527 | special_completion, NVME_IO_TIMEOUT); |
528 | if (unlikely(cmdid < 0)) | 528 | if (unlikely(cmdid < 0)) |
529 | return cmdid; | 529 | return cmdid; |
530 | 530 | ||
@@ -557,7 +557,7 @@ static int nvme_submit_bio_queue(struct nvme_queue *nvmeq, struct nvme_ns *ns, | |||
557 | iod->private = bio; | 557 | iod->private = bio; |
558 | 558 | ||
559 | result = -EBUSY; | 559 | result = -EBUSY; |
560 | cmdid = alloc_cmdid(nvmeq, iod, bio_completion, IO_TIMEOUT); | 560 | cmdid = alloc_cmdid(nvmeq, iod, bio_completion, NVME_IO_TIMEOUT); |
561 | if (unlikely(cmdid < 0)) | 561 | if (unlikely(cmdid < 0)) |
562 | goto free_iod; | 562 | goto free_iod; |
563 | 563 | ||
@@ -1129,7 +1129,7 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) | |||
1129 | if (length != (io.nblocks + 1) << ns->lba_shift) | 1129 | if (length != (io.nblocks + 1) << ns->lba_shift) |
1130 | status = -ENOMEM; | 1130 | status = -ENOMEM; |
1131 | else | 1131 | else |
1132 | status = nvme_submit_sync_cmd(nvmeq, &c, NULL, IO_TIMEOUT); | 1132 | status = nvme_submit_sync_cmd(nvmeq, &c, NULL, NVME_IO_TIMEOUT); |
1133 | 1133 | ||
1134 | nvme_unmap_user_pages(dev, io.opcode & 1, io.addr, length, iod); | 1134 | nvme_unmap_user_pages(dev, io.opcode & 1, io.addr, length, iod); |
1135 | nvme_free_iod(dev, iod); | 1135 | nvme_free_iod(dev, iod); |