Message ID | 20210220173931.22155-1-bvanassche@acm.org |
---|---|
State | Superseded |
Headers | show |
Series | scsi/sd: Fix Opal support | expand |
> - ret = scsi_execute_req(sdev, cdb, > - send ? DMA_TO_DEVICE : DMA_FROM_DEVICE, > - buffer, len, NULL, SD_TIMEOUT, sdkp->max_retries, NULL); > + ret = scsi_execute(sdev, cdb, > + send ? DMA_TO_DEVICE : DMA_FROM_DEVICE, buffer, len, > + /*sense=*/NULL, /*sshdr=*/NULL, SD_TIMEOUT, sdkp->max_retries, > + /*flags=*/0, /*rq_flags=*/RQF_PM, /*resid=*/NULL); Please keep the existing style here. Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index a3d2d4bc4a3d..aaebf166066a 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -707,9 +707,10 @@ static int sd_sec_submit(void *data, u16 spsp, u8 secp, void *buffer, put_unaligned_be16(spsp, &cdb[2]); put_unaligned_be32(len, &cdb[6]); - ret = scsi_execute_req(sdev, cdb, - send ? DMA_TO_DEVICE : DMA_FROM_DEVICE, - buffer, len, NULL, SD_TIMEOUT, sdkp->max_retries, NULL); + ret = scsi_execute(sdev, cdb, + send ? DMA_TO_DEVICE : DMA_FROM_DEVICE, buffer, len, + /*sense=*/NULL, /*sshdr=*/NULL, SD_TIMEOUT, sdkp->max_retries, + /*flags=*/0, /*rq_flags=*/RQF_PM, /*resid=*/NULL); return ret <= 0 ? ret : -EIO; } #endif /* CONFIG_BLK_SED_OPAL */