[PATCH TRY2] locking: annotate inline spinlocks and rwlocks on SMP

From: Pavel Roskin
Date: Thu Mar 25 2010 - 17:32:21 EST


Hello!

My patch at https://patchwork.kernel.org/patch/84441/ didn't get any
replies.

Bogus sparse warnings actually make developers change spin_lock() to
spin_lock_irqsave() to placate sparse, as it could be seen here:
http://marc.info/?l=linux-wireless&m=126954991321895&w=2

That's a patch I noticed because I read linux-wireless. I think it's a
safe bet that it's not the only patch inspired by the bogus sparse
warnings.

Locking is hard already, and we don't want sparse to confuse developers
even more. Linux code quality suffers because of that.

If there are any people or lists I should forward my patch to, please
let me know.

--
Regards,
Pavel Roskin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/