diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2019-02-12 16:29:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 11:59:45 -0500 |
commit | 16297d143989e3f5acd75c1ca0a771b78aa12b46 (patch) | |
tree | 50d2a00c1e3c848b67d559184d8e88cb99b63367 /net/smc | |
parent | 5bc056d8d0e3f5f896eb747d42d1e3aa8ceaf1b0 (diff) | |
download | blackbird-op-linux-16297d143989e3f5acd75c1ca0a771b78aa12b46.tar.gz blackbird-op-linux-16297d143989e3f5acd75c1ca0a771b78aa12b46.zip |
net/smc: no delay for free tx buffer wait
When no free transfer buffers are available then a work to call
smc_tx_work() is scheduled. Set the schedule delay to zero, because for
the out-of-buffers condition the work can start immediately and will
block in the called function smc_wr_tx_get_free_slot(), waiting for free
buffers.
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>
Diffstat (limited to 'net/smc')
-rw-r--r-- | net/smc/smc_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c index dd10a913b38e..a3bff08ff8c8 100644 --- a/net/smc/smc_tx.c +++ b/net/smc/smc_tx.c @@ -28,7 +28,7 @@ #include "smc_ism.h" #include "smc_tx.h" -#define SMC_TX_WORK_DELAY HZ +#define SMC_TX_WORK_DELAY 0 #define SMC_TX_CORK_DELAY (HZ >> 2) /* 250 ms */ /***************************** sndbuf producer *******************************/ |