Commit 8abab0da authored by Pavel Emelyanov's avatar Pavel Emelyanov

udp: Warn when read queue is dropped on dump

It's not blocking dump, dgram sockets can lose data. Just emit
a warning in log.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6de7b7b3
...@@ -106,6 +106,10 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk) ...@@ -106,6 +106,10 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
return 0; return 0;
} }
if (sk->rqlen)
pr_warn("Read queue is dropped for socket %x\n",
sk->sd.ino);
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment