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)
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)


No differences found