]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: use the atomic queue limits update API
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:58 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:56 +0000 (08:24 -0800)
commite6c9b130d68144381c097c90c517cc25e8f8924e
treea64bd792edfb29c4e0b5c7cf6525ef2b561b94a4
parent27cb91a3a102073473c6aaf0f7f0ba2db27dbf76
nvme: use the atomic queue limits update API

Changes the callchains that update queue_limits to build an on-stack
queue_limits and update it atomically.  Note that for now only the
admin queue actually passes it to the queue allocation function.
Doing the same for the gendisks used for the namespaces will require
a little more work.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/zns.c