Hi Martin, Recently Doug Gilbert reported that handling of bidi commands is broken in the scsi-mq code. This patch series fixes that bug and also simplifies bidi command handling. Please consider these patches for kernel v5.1. Thanks, Bart. Bart Van Assche (7): Introduce the bidi_supported flag in the host template structure Change scsi_cmnd.prot_sdb from a pointer into a regular member Fix bidi handling Introduce scsi_out_cmd() Move several function definitions in <scsi/scsi_cmnd.h> Introduce scsi_in_[sg]et_resid() and scsi_out_[sg]et_resid() Move the resid member from struct scsi_data_buffer into struct scsi_cmnd drivers/scsi/iscsi_tcp.c | 8 +--- drivers/scsi/libiscsi.c | 12 ++--- drivers/scsi/scsi_debug.c | 20 +++------ drivers/scsi/scsi_lib.c | 70 ++++++++++++------------------ drivers/scsi/sd.c | 4 +- drivers/scsi/virtio_scsi.c | 4 +- drivers/target/loopback/tcm_loop.c | 8 +--- include/scsi/scsi_cmnd.h | 67 ++++++++++++++++++++-------- include/scsi/scsi_host.h | 2 + 9 files changed, 96 insertions(+), 99 deletions(-) -- 2.20.1.321.g9e740568ce-goog