]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: iblock: Fix smp_processor_id() BUG messages
authorMike Christie <michael.christie@oracle.com>
Wed, 19 May 2021 22:26:40 +0000 (17:26 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 May 2021 20:40:00 +0000 (16:40 -0400)
commit10c586d6498f03d968aea377aecb75089cf69a0d
tree660685f76a9cd3c28bfc84c2547a9342de5d905c
parent7731b255e0add852916edc77e0f7c4e0adde91ee
scsi: target: iblock: Fix smp_processor_id() BUG messages

This has us use raw_smp_processor_id() in iblock's plug_device callout.
smp_processor_id() is not needed here, because we are running from a per
CPU work item that is also queued to run on a worker thread that is
normally bound to a specific CPU. If the worker thread did end up switching
CPUs then it's handled the same way we handle when the work got moved to a
different CPU's worker thread, where we will just end up sending I/O from
the new CPU.

Link: https://lore.kernel.org/r/20210519222640.5153-1-michael.christie@oracle.com
Fixes: ea0054b0e287 ("scsi: target: iblock: Add backend plug/unplug callouts")
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_iblock.c