Commit f7bf6ee
committed
iavf: iavf_suspend(): take RTNL before netdev_lock()
JIRA: https://issues.redhat.com/browse/RHEL-87382
commit dba35a4
Author: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Date: Fri Apr 4 12:23:16 2025 +0200
iavf: iavf_suspend(): take RTNL before netdev_lock()
Fix an obvious violation of lock ordering.
Jakub's [1] added netdev_lock() call that is wrong ordered wrt RTNL,
but the Fixes tag points to crit_lock being wrongly placed (by lockdep
standards).
Actual reason we got it wrong is dated back to critical section managed by
pure flag checks, which is with us since the very beginning.
[1] afc6649 ("eth: iavf: extend the netdev_lock usage")
Fixes: 5ac49f3 ("iavf: use mutexes for locking of critical sections")
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Mohammad Heib <mheib@redhat.com>1 parent 645a1aa commit f7bf6ee
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5611 | 5611 | | |
5612 | 5612 | | |
5613 | 5613 | | |
| 5614 | + | |
5614 | 5615 | | |
5615 | 5616 | | |
5616 | 5617 | | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
5617 | 5622 | | |
5618 | 5623 | | |
5619 | 5624 | | |
5620 | | - | |
5621 | | - | |
| 5625 | + | |
5622 | 5626 | | |
5623 | | - | |
5624 | | - | |
| 5627 | + | |
5625 | 5628 | | |
5626 | 5629 | | |
5627 | 5630 | | |
5628 | 5631 | | |
5629 | 5632 | | |
| 5633 | + | |
| 5634 | + | |
5630 | 5635 | | |
5631 | 5636 | | |
5632 | 5637 | | |
| |||
0 commit comments