You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
target: remove control CDB flags
We don't need three flags to classifiy the CDB as we can check for a NULL S/G list for a dataless command, and can infer from the absence of the data flag that we deal with a control CDB. Also remove the _SG_IO from the data CDB flag as all I/O is dont on S/G lists now. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
committed by
Nicholas Bellinger
parent
cb4f4d3c73
commit
64f1db38c6
@@ -1042,7 +1042,7 @@ static int pscsi_execute_cmd(struct se_cmd *cmd, struct scatterlist *sgl,
|
||||
memcpy(pt->pscsi_cdb, cmd->t_task_cdb,
|
||||
scsi_command_size(cmd->t_task_cdb));
|
||||
|
||||
if (cmd->se_cmd_flags & SCF_SCSI_NON_DATA_CDB) {
|
||||
if (!sgl) {
|
||||
req = blk_get_request(pdv->pdv_sd->request_queue,
|
||||
(data_direction == DMA_TO_DEVICE),
|
||||
GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user