Hi
>If the function can be called with interrupts disabled as well as
>enabled, then the spin_lock_irq needs to become a spin_lock_irqsave()
>which is the correct API for this case.
I know that spin_lock_irqsave()/spin_unlock_irqrestore() is correct .
But in this case, many places need to be modified to use
spin_lock_irqsave()/spin_unlock_irqrestore().Because
spin_lock_irqsave()/spin_unlock_irqrestore() is not in the same function,
and it is needed to pass eflags.
So I use in_irq() to distinguish between IRQ and process context and
minimize modifications.
Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html