Re: [PATCH] softirq: weaken warning in local_bh_enable_ip()

From: JÃrn Engel
Date: Wed Jun 19 2013 - 19:41:37 EST

On Wed, 19 June 2013 12:27:37 -1000, Linus Torvalds wrote:
> No the warning is correct, the SCSI target code needs to be fixed. You
> cannot call spin_unlock_bh with interrupts disabled.

That sounds like something coverity could be taught with reasonable
effort - if someone from them is listening. Not sure if sparse has
enough context to do the same.

Just to play thick and make things ultra-clear, you say the following
pattern is never legal, correct?


> So fix the code, don't weaken the warning.

Will do.


The only real mistake is the one from which we learn nothing.
-- John Powell
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at