]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Calls displayed in /proc may in future lack a connection
authorDavid Howells <dhowells@redhat.com>
Fri, 17 Jun 2016 10:07:55 +0000 (11:07 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 22 Jun 2016 08:17:51 +0000 (09:17 +0100)
commit2ca89b94654198238b68e0cf671cc1e8088141c3
tree52266dc9fa1325663a901bf3f390746a5a44854c
parent39e73727a1c89d7dd3b59a770c4b1b3c2dde9dfb
rxrpc: Calls displayed in /proc may in future lack a connection

Allocated rxrpc calls displayed in /proc/net/rxrpc_calls may in future be
on the proc list before they're connected or after they've been
disconnected - in which case they may not have a pointer to a connection
struct that can be used to get data from there.

Deal with this by using stuff from the call struct in preference where
possible and printing "no_connection" rather than a peer address if no
connection is assigned.

This change also has the added bonus that the service ID is now taken from
the call rather the connection which will allow per-call service upgrades
to be shown - something required for AuriStor server compatibility.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/proc.c