]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitadd3f2fa7a6cec16d35a95b9078e1ecc80a6f332
tree318ef63e12c33bd115dd86954343b0ae27795141
parentd81ef0fb76ef2eb7126f64cb34217d2ddfb48483
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