[PATCH] sbp2: fix another deadlock after disconnection
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 26 Feb 2006 23:52:53 +0000 (00:52 +0100)
committerChris Wright <chrisw@sous-sol.org>
Wed, 1 Mar 2006 22:36:37 +0000 (14:36 -0800)
commit6cbb463db05210e83ddc18cbd92e295f1fefa111
tree11ccee61ae7c0ea81fa663c61d06ddb915e364f8
parented26c7781107e4d8fd0c654459e61b81096c4ff4
[PATCH] sbp2: fix another deadlock after disconnection

sbp2: fix another deadlock after disconnection

If there were commands enqueued but not completed before an SBP-2 unit
was unplugged (or an attempt to reconnect failed), knodemgrd or any
process which tried to remove the device would sleep uninterruptibly
in blk_execute_rq().  Therefore make sure that all commands are
completed when sbp2 retreats.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/ieee1394/sbp2.c