Commit 26815161 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by Linus Torvalds

[PATCH] qlogic nonatomic warning fix

The qlogic driver complains about the use of smp_processor_id() in
preemptible code.  And it's right.

But it's just for an affinity optimisation and we can validly quash the
warning.
Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9a6caf11
......@@ -859,7 +859,7 @@ qla2x00_queuecommand(struct scsi_cmnd *cmd, void (*fn)(struct scsi_cmnd *))
* In all other cases we'll let an irq pick up our IO and submit it
* to the controller to improve affinity.
*/
if (smp_processor_id() == ha->last_irq_cpu || was_empty)
if (_smp_processor_id() == ha->last_irq_cpu || was_empty)
qla2x00_next(ha);
spin_lock_irq(ha->host->host_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment