]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: cxgbit: Check connection state before issuing hardware command
authorVarun Prakash <varun@chelsio.com>
Wed, 1 Jul 2020 16:46:10 +0000 (22:16 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Jul 2020 05:48:23 +0000 (01:48 -0400)
commit3ab885f0d665e9b8855fb9a4e098f0375d95efe8
tree297cde6f6d19bceb940a3680e2f81a2a8dc018b9
parent2c701edbbcfb460c4477c3a9d238cb3e50ce8929
scsi: target: cxgbit: Check connection state before issuing hardware command

Current code does not check connection state before issuing
header/data digest offload and DDP page size setup hardware command.

Add a connection state check to issue hardware command only
if connection is in established state.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/iscsi/cxgbit/cxgbit_cm.c