diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-05-29 00:56:55 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 15:22:23 +0200 |
commit | 3f27e3ed11e67c5ee19d560a50eafd93cf8c6682 (patch) | |
tree | d2ed33ce7ca12c8b7e1c585ba9b2097095b0f89c /drivers/scsi/scsi_debug.c | |
parent | [SCSI] iscsi_tcp: Enable any size command (diff) | |
download | linux-3f27e3ed11e67c5ee19d560a50eafd93cf8c6682.tar.xz linux-3f27e3ed11e67c5ee19d560a50eafd93cf8c6682.zip |
[SCSI] bsg: fix bsg_mutex hang with device removal
We don't need to hold bsg_mutex during bsg_complete_all_commands(). It
leads to a problem that we block bsg_unregister_queue during
bsg_complete_all_commands (untill all the outstanding commands
complete).
Thanks to Pete Wyckoff for finding the bug and testing the patch.
The detailed bug report is:
http://marc.info/?l=linux-scsi&m=121182137132145&w=2
Tested-by: Pete Wyckoff <pw@osc.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions