mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
strparser: Use delayed work instead of timer for msg timeout
Sock lock may be taken in the message timer function which is a
problem since timers run in BH. Instead of timers use delayed_work.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Fixes: bbb03029a8
("strparser: Generalize strparser")
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
864f5af3a3
commit
829385f08a
2 changed files with 9 additions and 11 deletions
|
@ -74,10 +74,9 @@ struct strparser {
|
|||
u32 unrecov_intr : 1;
|
||||
|
||||
struct sk_buff **skb_nextp;
|
||||
struct timer_list msg_timer;
|
||||
struct sk_buff *skb_head;
|
||||
unsigned int need_bytes;
|
||||
struct delayed_work delayed_work;
|
||||
struct delayed_work msg_timer_work;
|
||||
struct work_struct work;
|
||||
struct strp_stats stats;
|
||||
struct strp_callbacks cb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue