mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08:00
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: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
e7d7217324
commit
efba1a31f3
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user