]> git.baikalelectronics.ru Git - kernel.git/commit
s390: avoid inconsistent lock state in qeth
authorUrsula Braun <braunu@de.ibm.com>
Wed, 20 Jun 2007 10:58:02 +0000 (12:58 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Jun 2007 23:12:42 +0000 (19:12 -0400)
commit29ffe4217c280c5852c1fbd230eda730f004908c
tree318ef63e12c33bd115dd86954343b0ae27795141
parentaa77d26f52e7e45587ef9fc75fc312104d5c9fce
s390: avoid inconsistent lock state in qeth

ipv6_regen_rndid in net/ipv6/addrconf.c makes use of "write_lock_bh"
for its inet6_dev->lock. It may run in softirq-context.
qeth makes use of "read_lock" for the same inet6_dev->lock.
To avoid a potential deadlock situation, qeth should make use of
"read_lock_bh" for its usages of inet6_dev->lock.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/s390/net/qeth_main.c