Commit 931e93b
net: do not provide hard irq safety for sd->defer_lock
kfree_skb() can be called from hard irq handlers,
but skb_attempt_defer_free() is meant to be used
from process or BH contexts, and skb_defer_free_flush()
is meant to be called from BH contexts.
Not having to mask hard irq can save some cycles.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent e8e1ce8 commit 931e93b
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6632 | 6632 | | |
6633 | 6633 | | |
6634 | 6634 | | |
6635 | | - | |
| 6635 | + | |
6636 | 6636 | | |
6637 | 6637 | | |
6638 | 6638 | | |
6639 | | - | |
| 6639 | + | |
6640 | 6640 | | |
6641 | 6641 | | |
6642 | 6642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6870 | 6870 | | |
6871 | 6871 | | |
6872 | 6872 | | |
6873 | | - | |
6874 | 6873 | | |
6875 | 6874 | | |
6876 | 6875 | | |
| |||
6889 | 6888 | | |
6890 | 6889 | | |
6891 | 6890 | | |
6892 | | - | |
| 6891 | + | |
6893 | 6892 | | |
6894 | 6893 | | |
6895 | 6894 | | |
| |||
6898 | 6897 | | |
6899 | 6898 | | |
6900 | 6899 | | |
6901 | | - | |
| 6900 | + | |
6902 | 6901 | | |
6903 | 6902 | | |
6904 | 6903 | | |
| |||
0 commit comments