scsi: iscsi: Merge suspend fields
Move the tx and rx suspend fields into one flags field. Link: https://lore.kernel.org/r/20220408001314.5014-8-michael.christie@oracle.com Tested-by: Manish Rangankar <mrangankar@marvell.com> Reviewed-by: Lee Duncan <lduncan@suse.com> Reviewed-by: Chris Leech <cleech@redhat.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
03690d8197
commit
5bd856256f
@@ -927,7 +927,7 @@ int iscsi_tcp_recv_skb(struct iscsi_conn *conn, struct sk_buff *skb,
|
||||
*/
|
||||
conn->last_recv = jiffies;
|
||||
|
||||
if (unlikely(conn->suspend_rx)) {
|
||||
if (unlikely(test_bit(ISCSI_CONN_FLAG_SUSPEND_RX, &conn->flags))) {
|
||||
ISCSI_DBG_TCP(conn, "Rx suspended!\n");
|
||||
*status = ISCSI_TCP_SUSPENDED;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user