]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: queue reset work in system_long_wq
authorLijun Pan <lijunp213@gmail.com>
Tue, 13 Apr 2021 19:33:39 +0000 (14:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 21:56:23 +0000 (14:56 -0700)
commitd759736da58d1ea3481e5721ec7540825f01bb2c
treee37e571fce13caf29b1542812e6ed1afff8937b4
parent0b2218c7a651514a2b52550592a918611812050c
ibmvnic: queue reset work in system_long_wq

The reset process for ibmvnic commonly takes multiple seconds, clearly
making it inappropriate for schedule_work/system_wq. The reason to make
this change is that ibmvnic's use of the default system-wide workqueue
for a relatively long-running work item can negatively affect other
workqueue users. So, queue the relatively slow reset job to the
system_long_wq.

Suggested-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c