OSDN Git Service

net/smc: reduce amount of status updates to peer
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 12 Feb 2019 15:29:53 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 16:59:45 +0000 (11:59 -0500)
commitcf0cfe535845cf60830e1482f7e618d80140e8d9
treec2331f49500785629623e61abc28fb2ea85037dd
parent16297d143989e3f5acd75c1ca0a771b78aa12b46
net/smc: reduce amount of status updates to peer

In smc_cdc_msg_recv_action() the received cdc message is evaluated.
To reduce the number of messaged triggered by this evaluation the logic
is streamlined. For the write_blocked condition we do not need to send
a response immediately. The remaining conditions can be put together
into one if clause.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c