]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeon_ep: cancel ctrl_mbox_task after intr_poll_task
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 10 Aug 2023 15:01:13 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:32:45 +0000 (17:32 +0200)
commit067a5ec70ee18d56566c2bcdcbf6c86bac5edfdf
tree4f678d36b3953a44b93fc05a8cf46fcec44d7993
parent1c5cc171ab108a7621875cfdb3c4d62819537cae
octeon_ep: cancel ctrl_mbox_task after intr_poll_task

[ Upstream commit 607a7a45cdf38c1901e0d81e4e00a2a88786330a ]

intr_poll_task may queue ctrl_mbox_task. The function
octep_poll_non_ioq_interrupts_cn93_pf does this.

When removing the driver and canceling these two works, cancel
ctrl_mbox_task last to guarantee it does not run anymore.

Fixes: 24d4333233b3 ("octeon_ep: poll for control messages")
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Link: https://lore.kernel.org/r/20230810150114.107765-4-mschmidt@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_main.c