aboutsummaryrefslogtreecommitdiffstats
path: root/block/as-iosched.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-09-30 17:18:59 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-30 10:58:47 -0700
commit77ed74da26f50fa28471571ee7a2251b77526d84 (patch)
tree5db5671bb6f69613103ded68027b1d7e8677c87e /block/as-iosched.c
parent5ffd1a6aaacc25be8cd0770a51ec6d46add3a276 (diff)
downloadmrst-s0i3-test-77ed74da26f50fa28471571ee7a2251b77526d84.tar.gz
mrst-s0i3-test-77ed74da26f50fa28471571ee7a2251b77526d84.tar.xz
mrst-s0i3-test-77ed74da26f50fa28471571ee7a2251b77526d84.zip
[PATCH] i2c: Prevent deadlock on i2c client registration
Delay the call to adapter->client_register() until after we are certain that the client registration is a success. At this point the client is fully initialized and we no longer hold the adapter->clist mutex, so this should prevent the deadlocks if the client_register() callback needs to take that mutex too, as is the case for the bttv driver. This fixes bug #7234. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'block/as-iosched.c')
0 files changed, 0 insertions, 0 deletions