Re: [PATCHv2] scsi: core: set result when the command cannot be dispatched

2019-04-15 Thread Martin K. Petersen
Jaesoo, > When SCSI blk-mq is enabled, there is a bug in handling errors in > scsi_queue_rq. Specifically, the bug is not setting result field of > scsi_request correctly when the dispatch of the command has been > failed. Since the upper layer code including the sg_io ioctl expects > to receiv

Re: [PATCHv2] scsi: core: set result when the command cannot be dispatched

2019-04-10 Thread Bart Van Assche
On Tue, 2019-04-09 at 17:02 -0700, Jaesoo Lee wrote: > When SCSI blk-mq is enabled, there is a bug in handling errors in > scsi_queue_rq. > Specifically, the bug is not setting result field of scsi_request correctly > when > the dispatch of the command has been failed. Since the upper layer code

Re: [PATCHv2] scsi: core: set result when the command cannot be dispatched

2019-04-09 Thread Hannes Reinecke
On 4/10/19 2:02 AM, Jaesoo Lee wrote: When SCSI blk-mq is enabled, there is a bug in handling errors in scsi_queue_rq. Specifically, the bug is not setting result field of scsi_request correctly when the dispatch of the command has been failed. Since the upper layer code including the sg_io ioctl

[PATCHv2] scsi: core: set result when the command cannot be dispatched

2019-04-09 Thread Jaesoo Lee
When SCSI blk-mq is enabled, there is a bug in handling errors in scsi_queue_rq. Specifically, the bug is not setting result field of scsi_request correctly when the dispatch of the command has been failed. Since the upper layer code including the sg_io ioctl expects to receive any error status fro