提交 efba1a31 编写于 作者: F FUJITA Tomonori 提交者: Jens Axboe

bsg: fix the deadlock on discarding done commands

The previous commit introduced a deadlock in discarding commands,
because we forget to unlock the bd spinlock.
Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 e7d72173
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册