sbp2: fix another deadlock after disconnection
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 31 Jan 2006 05:13:06 +0000 (00:13 -0500)
committerJody McIntyre <scjody@modernduck.com>
Thu, 23 Feb 2006 05:25:08 +0000 (00:25 -0500)
commitbf637ec3ef4159da3dd156ecf6f6987d8c8c5dae
tree4d90e883515171529e74ab9446e19bc1030abe4c
parent9e956c2dac9bec602ed1ba29181b45ba6d2b6448
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: Jody McIntyre <scjody@modernduck.com>
(cherry picked from 61daa34c132c5d4ed8630e2c46e9bf2f0c7b3428 commit)
drivers/ieee1394/sbp2.c