Commit a77ed5c
iavf: use internal state to free traffic IRQs
If the system tries to close the netdev while iavf_reset_task() is
running, __LINK_STATE_START will be cleared and netif_running() will
return false in iavf_reinit_interrupt_scheme(). This will result in
iavf_free_traffic_irqs() not being called and a leak as follows:
[7632.489326] remove_proc_entry: removing non-empty directory 'irq/999', leaking at least 'iavf-enp24s0f0v0-TxRx-0'
[7632.490214] WARNING: CPU: 0 PID: 10 at fs/proc/generic.c:718 remove_proc_entry+0x19b/0x1b0
is shown when pci_disable_msix() is later called. Fix by using the
internal adapter state. The traffic IRQs will always exist if
state == __IAVF_RUNNING.
Fixes: 5b36e8d ("i40evf: Enable VF to request an alternate queue allocation")
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent 7c4bced commit a77ed5c
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1929 | 1929 | | |
1930 | 1930 | | |
1931 | 1931 | | |
| 1932 | + | |
1932 | 1933 | | |
1933 | 1934 | | |
1934 | 1935 | | |
1935 | | - | |
| 1936 | + | |
1936 | 1937 | | |
1937 | 1938 | | |
1938 | 1939 | | |
1939 | 1940 | | |
1940 | | - | |
| 1941 | + | |
1941 | 1942 | | |
1942 | 1943 | | |
1943 | 1944 | | |
| |||
3053 | 3054 | | |
3054 | 3055 | | |
3055 | 3056 | | |
3056 | | - | |
| 3057 | + | |
3057 | 3058 | | |
3058 | 3059 | | |
3059 | 3060 | | |
| |||
0 commit comments