]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: Fix unsafe using smp_processor_id() in preemptible
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Tue, 17 Apr 2012 05:55:04 +0000 (11:25 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 6 Jun 2012 03:38:56 +0000 (12:38 +0900)
commit27481134d003564af497813187a5fe339ad12d02
tree9fe23d2db75e2a24cae14ad8c6985f6d0b5e8be4
parentf5115900445a63ff073f1be797d533122d611ed6
[SCSI] mpt2sas: Fix unsafe using smp_processor_id() in preemptible

When CONFIG_DEBUG_PREEMPT is enabled, bug is observed in the smp_processor_id().
This is because smp_processor_id() is not called in preempt safe condition.

To fix this issue, use raw_smp_processor_id instead of smp_processor_id.

Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
CC: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_base.c