Re: [PATCH v2 1/2] [SCSI] sg: fix unkillable I/O wait deadlock with scsi-mq

2015-02-15 Thread Douglas Gilbert
On 15-02-13 12:09 PM, Tony Battersby wrote: When using the write()/read() interface for submitting commands, the SCSI generic 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 preallo

Re: [PATCH v2 1/2] [SCSI] sg: fix unkillable I/O wait deadlock with scsi-mq

2015-02-13 Thread Douglas Gilbert
On 15-02-13 12:09 PM, Tony Battersby wrote: When using the write()/read() interface for submitting commands, the SCSI generic 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 preallo

[PATCH v2 1/2] [SCSI] sg: fix unkillable I/O wait deadlock with scsi-mq

2015-02-13 Thread Tony Battersby
When using the write()/read() interface for submitting commands, the SCSI generic 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 us