Exclude reserved iSCSI Target Transfer Tag.
RFC 7143 (11.7.4): The Target Transfer Tag values are not specified by this protocol, except that the value 0xffffffff is reserved and means that the Target Transfer Tag is not supplied. MFC after: 1 month
This commit is contained in:
parent
7680431a38
commit
b31dae0caa
@ -2693,6 +2693,10 @@ cfiscsi_datamove_out(union ctl_io *io)
|
|||||||
|
|
||||||
target_transfer_tag =
|
target_transfer_tag =
|
||||||
atomic_fetchadd_32(&cs->cs_target_transfer_tag, 1);
|
atomic_fetchadd_32(&cs->cs_target_transfer_tag, 1);
|
||||||
|
if (target_transfer_tag == 0xffffffff) {
|
||||||
|
target_transfer_tag =
|
||||||
|
atomic_fetchadd_32(&cs->cs_target_transfer_tag, 1);
|
||||||
|
}
|
||||||
cdw = cfiscsi_data_wait_new(cs, io, bhssc->bhssc_initiator_task_tag,
|
cdw = cfiscsi_data_wait_new(cs, io, bhssc->bhssc_initiator_task_tag,
|
||||||
&target_transfer_tag);
|
&target_transfer_tag);
|
||||||
if (cdw == NULL) {
|
if (cdw == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user