]> www.infradead.org Git - users/dwmw2/linux.git/commit
ibmvnic: Flush existing work items before device removal
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 12 Jun 2020 18:34:41 +0000 (13:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:32 +0000 (17:48 +0200)
commit7028ba6cfd0ae27bf172023f145115b1823ce540
treeed104169aa9416555894a79a99ce47ef5cd13d6f
parent8944878343bba65e74768d2efcd312fac059b33b
ibmvnic: Flush existing work items before device removal

[ Upstream commit 6954a9e4192b86d778fb52b525fd7b62d51b1147 ]

Ensure that all scheduled work items have completed before continuing
with device removal and after further event scheduling has been
halted. This patch fixes a bug where a scheduled driver reset event
is processed following device removal.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c