]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: Fix warning with CONFIG_DEBUG_PREEMPT
authorSagi Grimberg <sagi@grimberg.me>
Wed, 13 Jan 2021 22:03:04 +0000 (14:03 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 14 Jan 2021 19:27:35 +0000 (20:27 +0100)
commit614b4c8faa3889dab4791c324bbb3676a74d3823
tree4fd443a9649a16cd4925800b29e1b710c7a52c27
parent33870916771b6e06db805e76995153342b529111
nvme-tcp: Fix warning with CONFIG_DEBUG_PREEMPT

We shouldn't call smp_processor_id() in a preemptible
context, but this is advisory at best, so instead
call __smp_processor_id().

Fixes: 58375c17a569 ("nvme-tcp: try to send request in queue_rq context")
Reported-by: Or Gerlitz <gerlitz.or@gmail.com>
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c