]> rtime.felk.cvut.cz Git - linux-lin.git/commit
sllin: Use separate spinlock for LIN frame cache and processing protection.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 5 Feb 2012 22:04:21 +0000 (23:04 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 5 Feb 2012 22:04:21 +0000 (23:04 +0100)
commit5a5be8e4198e7d6ff4b18ab2f7ae67c1429a99f1
tree1ed15c078fd482da0ef70c581ee4c79563e63ec3
parent77e7c0235327e4ad651462afcea7fd9dc094f255
sllin: Use separate spinlock for LIN frame cache and processing protection.

The sl->linfr_lock spinlock is used with spin_lock_irqsave
exclusivelly and it is safe to use it in all kinds
of contexts (thread, bottom-halves or even IRQ handlers).
The sl->lock protects network device related data
and outside of sll_xmit or other bottom-halves callbacks
has to be locked with spin_lock_bh variant.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
sllin/sllin.c