Re: [PATCH] [SCSI] bsg: fix unkillable I/O wait deadlock with scsi-mq

2015-02-13 Thread Tony Battersby
On 02/11/2015 11:31 AM, Tony Battersby wrote: > Note: I did a number of tests with this patch, but I do not have any > programs to test commands with bidirectional data transfer. I would > appreciate if someone could test that. Replying to myself, I was able to test bidirectional data transfer us

[PATCH] [SCSI] bsg: fix unkillable I/O wait deadlock with scsi-mq

2015-02-11 Thread Tony Battersby
When using the write()/read() interface for submitting commands, the bsg driver does not call blk_put_request() on a completed SCSI command until userspace calls read() to get the command completion. Since scsi-mq uses a fixed number of preallocated requests, this makes it possible for userspace t