net: tracepoint: using sock_set_state tracepoint to trace DCCP state transition
authorYafang Shao <laoar.shao@gmail.com>
Wed, 20 Dec 2017 03:12:53 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 19:00:25 +0000 (14:00 -0500)
With changes in inet_ files, DCCP state transitions are traced with
inet_sock_set_state tracepoint.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/proto.c

index 9d43c1f4027408f3a2176767da0dd425938ba652..7a75a1d3568bc3e422b5c35f9f5d7883fda2e6cc 100644 (file)
@@ -110,7 +110,7 @@ void dccp_set_state(struct sock *sk, const int state)
        /* Change state AFTER socket is unhashed to avoid closed
         * socket sitting in hash tables.
         */
-       sk->sk_state = state;
+       inet_sk_set_state(sk, state);
 }
 
 EXPORT_SYMBOL_GPL(dccp_set_state);