]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/target/target_core_pscsi.c
block: fold cmd_type into the REQ_OP_ space
[mirror_ubuntu-jammy-kernel.git] / drivers / target / target_core_pscsi.c
index e52f4e1a4675a8e0740bec26544aecf5e6259061..a8f8e53f2f574852de573a08a86ad1c25b4cf332 100644 (file)
@@ -1005,7 +1005,8 @@ pscsi_execute_cmd(struct se_cmd *cmd)
                scsi_command_size(cmd->t_task_cdb));
 
        req = blk_get_request(pdv->pdv_sd->request_queue,
-                       (cmd->data_direction == DMA_TO_DEVICE),
+                       cmd->data_direction == DMA_TO_DEVICE ?
+                       REQ_OP_SCSI_OUT : REQ_OP_SCSI_IN,
                        GFP_KERNEL);
        if (IS_ERR(req)) {
                pr_err("PSCSI: blk_get_request() failed\n");