OSDN Git Service

strparser: Use delayed work instead of timer for msg timeout
authorTom Herbert <tom@quantonium.net>
Fri, 20 Oct 2017 23:40:43 +0000 (16:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Oct 2017 01:37:11 +0000 (10:37 +0900)
commit829385f08ae99740276cbd46c9db29764c519211
treea95d023c7d12186bd605660c93841df05086e65c
parent864f5af3a3525f588391cd230cb8129ad758708e
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: bbb03029a899 ("strparser: Generalize strparser")
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/strparser.h
net/strparser/strparser.c