.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2010 Cisco Systems, Inc. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify it |
---|
5 | | - * under the terms and conditions of the GNU General Public License, |
---|
6 | | - * version 2, as published by the Free Software Foundation. |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
9 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
10 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
11 | | - * more details. |
---|
12 | | - * |
---|
13 | | - * You should have received a copy of the GNU General Public License along with |
---|
14 | | - * this program; if not, write to the Free Software Foundation, Inc., |
---|
15 | | - * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
---|
16 | 4 | */ |
---|
17 | 5 | |
---|
18 | 6 | /* XXX TBD some includes may be extraneous */ |
---|
.. | .. |
---|
182 | 170 | */ |
---|
183 | 171 | target_put_sess_cmd(&cmd->se_cmd); |
---|
184 | 172 | return 0; |
---|
185 | | -} |
---|
186 | | - |
---|
187 | | -int ft_write_pending_status(struct se_cmd *se_cmd) |
---|
188 | | -{ |
---|
189 | | - struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); |
---|
190 | | - |
---|
191 | | - return cmd->write_data_len != se_cmd->data_length; |
---|
192 | 173 | } |
---|
193 | 174 | |
---|
194 | 175 | /* |
---|
.. | .. |
---|
556 | 537 | case FCP_PTA_ACA: |
---|
557 | 538 | task_attr = TCM_ACA_TAG; |
---|
558 | 539 | break; |
---|
559 | | - case FCP_PTA_SIMPLE: /* Fallthrough */ |
---|
| 540 | + case FCP_PTA_SIMPLE: |
---|
560 | 541 | default: |
---|
561 | 542 | task_attr = TCM_SIMPLE_TAG; |
---|
562 | 543 | } |
---|
.. | .. |
---|
570 | 551 | if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, |
---|
571 | 552 | &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun), |
---|
572 | 553 | ntohl(fcp->fc_dl), task_attr, data_dir, |
---|
573 | | - TARGET_SCF_ACK_KREF | TARGET_SCF_USE_CPUID)) |
---|
| 554 | + TARGET_SCF_ACK_KREF)) |
---|
574 | 555 | goto err; |
---|
575 | 556 | |
---|
576 | 557 | pr_debug("r_ctl %x target_submit_cmd %p\n", fh->fh_r_ctl, cmd); |
---|