]> git.itanic.dy.fi Git - linux-stable/commit
nvme-tcp: fix misuse of __smp_processor_id with preemption enabled
authorSagi Grimberg <sagi@grimberg.me>
Mon, 15 Mar 2021 20:53:47 +0000 (13:53 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 18 Mar 2021 04:39:01 +0000 (05:39 +0100)
commitbb83337058a7000644cdeffc67361d2473534756
tree5632a838e0489afa182e4b366853a60cc5b46c39
parentfd0823f405090f9f410fc3e3ff7efb52e7b486fa
nvme-tcp: fix misuse of __smp_processor_id with preemption enabled

For our pure advisory use-case, we only rely on this call as a hint, so
fix the warning complaints of using the smp_processor_id variants with
preemption enabled.

Fixes: db5ad6b7f8cd ("nvme-tcp: try to send request in queue_rq context")
Fixes: ada831772188 ("nvme-tcp: Fix warning with CONFIG_DEBUG_PREEMPT")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c