From: Roy Novich <royno@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/nvme/host/fault_inject.c

Change-Id: I342924da6f47877e5d956edd28dbe6aa45edb82b
---
 drivers/nvme/host/fault_inject.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/nvme/host/fault_inject.c
+++ b/drivers/nvme/host/fault_inject.c
@@ -56,7 +56,11 @@ void nvme_fault_inject_fini(struct nvme_
 
 void nvme_should_fail(struct request *req)
 {
+#ifdef HAVE_REQ_RQ_DISK
+	struct gendisk *disk = req->rq_disk;
+#else
 	struct gendisk *disk = req->q->disk;
+#endif
 	struct nvme_fault_inject *fault_inject = NULL;
 	u16 status;
 
