hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/nvme/host/nvme.h
....@@ -155,6 +155,11 @@
155155 * Reports garbage in the namespace identifiers (eui64, nguid, uuid).
156156 */
157157 NVME_QUIRK_BOGUS_NID = (1 << 18),
158
+
159
+ /*
160
+ * Limit io queue depth to 32
161
+ */
162
+ NVME_QUIRK_LIMIT_IOQD32 = (1 << 31),
158163 };
159164
160165 /*
....@@ -749,7 +754,7 @@
749754 {
750755 struct nvme_ns *ns = req->q->queuedata;
751756
752
- if (req->cmd_flags & REQ_NVME_MPATH)
757
+ if ((req->cmd_flags & REQ_NVME_MPATH) && req->bio)
753758 trace_block_bio_complete(ns->head->disk->queue, req->bio);
754759 }
755760