Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme-pci: fix missed admin queue sq doorbell write

We can batch admin commands submitted through io_uring_cmd passthrough,
which means bd->last may be false and skips the doorbell write to
aggregate multiple commands per write. If a subsequent command can't be
dispatched for whatever reason, we have to provide the blk-mq ops'
commit_rqs callback in order to ensure we properly update the doorbell.

Fixes: 58e5bdeb9c2b ("nvme: enable uring-passthrough for admin commands")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>

+1
+1
drivers/nvme/host/pci.c
··· 2239 2239 static const struct blk_mq_ops nvme_mq_admin_ops = { 2240 2240 .queue_rq = nvme_queue_rq, 2241 2241 .complete = nvme_pci_complete_rq, 2242 + .commit_rqs = nvme_commit_rqs, 2242 2243 .init_hctx = nvme_admin_init_hctx, 2243 2244 .init_request = nvme_pci_init_request, 2244 2245 .timeout = nvme_timeout,