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:

committed by
David S. Miller

parent
864f5af3a3
commit
829385f08a
@@ -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;
|
||||
|
Reference in New Issue
Block a user