mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
5bc056d8d0
commit
16297d1439
@ -28,7 +28,7 @@
|
|||||||
#include "smc_ism.h"
|
#include "smc_ism.h"
|
||||||
#include "smc_tx.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 */
|
#define SMC_TX_CORK_DELAY (HZ >> 2) /* 250 ms */
|
||||||
|
|
||||||
/***************************** sndbuf producer *******************************/
|
/***************************** sndbuf producer *******************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user