scsi: remove bidirectional command support
No real need for bidi support once the OSD code is gone. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
19fcae3d4f
commit
ae3d56d815
@@ -368,25 +368,19 @@ static void uas_data_cmplt(struct urb *urb)
|
||||
struct scsi_cmnd *cmnd = urb->context;
|
||||
struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp;
|
||||
struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata;
|
||||
struct scsi_data_buffer *sdb = NULL;
|
||||
struct scsi_data_buffer *sdb = &cmnd->sdb;
|
||||
unsigned long flags;
|
||||
int status = urb->status;
|
||||
|
||||
spin_lock_irqsave(&devinfo->lock, flags);
|
||||
|
||||
if (cmdinfo->data_in_urb == urb) {
|
||||
sdb = scsi_in(cmnd);
|
||||
cmdinfo->state &= ~DATA_IN_URB_INFLIGHT;
|
||||
cmdinfo->data_in_urb = NULL;
|
||||
} else if (cmdinfo->data_out_urb == urb) {
|
||||
sdb = scsi_out(cmnd);
|
||||
cmdinfo->state &= ~DATA_OUT_URB_INFLIGHT;
|
||||
cmdinfo->data_out_urb = NULL;
|
||||
}
|
||||
if (sdb == NULL) {
|
||||
WARN_ON_ONCE(1);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (devinfo->resetting)
|
||||
goto out;
|
||||
@@ -426,8 +420,7 @@ static struct urb *uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp,
|
||||
struct usb_device *udev = devinfo->udev;
|
||||
struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp;
|
||||
struct urb *urb = usb_alloc_urb(0, gfp);
|
||||
struct scsi_data_buffer *sdb = (dir == DMA_FROM_DEVICE)
|
||||
? scsi_in(cmnd) : scsi_out(cmnd);
|
||||
struct scsi_data_buffer *sdb = &cmnd->sdb;
|
||||
unsigned int pipe = (dir == DMA_FROM_DEVICE)
|
||||
? devinfo->data_in_pipe : devinfo->data_out_pipe;
|
||||
|
||||
|
Reference in New Issue
Block a user