projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d7217
)
bsg: fix the deadlock on discarding done commands
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Thu, 7 Jun 2007 11:24:06 +0000
(13:24 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 16 Jul 2007 06:52:46 +0000
(08:52 +0200)
The previous commit introduced a deadlock in discarding commands,
because we forget to unlock the bd spinlock.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/bsg.c
patch
|
blob
|
history
diff --git
a/block/bsg.c
b/block/bsg.c
index 2f78d7d34b9deecbb712b2e7c1cff028e380cc17..5f4abc902a009f5c320e0ac8b72365ba2087f353 100644
(file)
--- a/
block/bsg.c
+++ b/
block/bsg.c
@@
-471,6
+471,7
@@
static int bsg_complete_all_commands(struct bsg_device *bd)
spin_unlock_irq(&bd->lock);
break;
}
+ spin_unlock_irq(&bd->lock);
bc = bsg_get_done_cmd(bd);
if (IS_ERR(bc))