summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-05 19:18:11 +0200
committerJens Axboe <axboe@fb.com>2017-04-05 20:05:08 +0200
commit44e44b29fb99a299dfaa404a59fa35519a197c6b (patch)
tree15f55ff95415370841543d8514bfc981e5cd5b1e /drivers/nvme/host/nvme.h
parentnvme: mark nvme_max_retries static (diff)
downloadlinux-44e44b29fb99a299dfaa404a59fa35519a197c6b.tar.xz
linux-44e44b29fb99a299dfaa404a59fa35519a197c6b.zip
nvme: move the retries count to struct nvme_request
The way NVMe uses this field is entirely different from the older SCSI/BLOCK_PC usage, so move it into struct nvme_request. Also reduce the size of the file to a unsigned char so that we leave space for additional smaller fields that will appear soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
-rw-r--r--drivers/nvme/host/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 82ba9a305301..9eecb67177df 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -90,6 +90,7 @@ enum nvme_quirks {
struct nvme_request {
struct nvme_command *cmd;
union nvme_result result;
+ u8 retries;
};
static inline struct nvme_request *nvme_req(struct request *req)