diff options
author | Geliang Tang <geliangtang@gmail.com> | 2020-09-24 03:30:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-25 05:58:34 +0300 |
commit | 08b81d873126b413cda511b1ea1cbb0e99938bbd (patch) | |
tree | 39601f9ec6ee0898cd3f10287ba78d423caefe1c /include/net/sock.h | |
parent | 0abd40f823cbd3beb2889a100c2210b13a63585b (diff) | |
download | linux-08b81d873126b413cda511b1ea1cbb0e99938bbd.tar.xz |
mptcp: add sk_stop_timer_sync helper
This patch added a new helper sk_stop_timer_sync, it deactivates a timer
like sk_stop_timer, but waits for the handler to finish.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index eaa5cac5e836..a5c6ae78df77 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2195,6 +2195,8 @@ void sk_reset_timer(struct sock *sk, struct timer_list *timer, void sk_stop_timer(struct sock *sk, struct timer_list *timer); +void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer); + int __sk_queue_drop_skb(struct sock *sk, struct sk_buff_head *sk_queue, struct sk_buff *skb, unsigned int flags, void (*destructor)(struct sock *sk, |