summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_debug.c
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2020-03-30 11:04:06 -0700
committerSteve French <stfrench@microsoft.com>2020-04-07 12:41:16 -0500
commit072a14ec6386829314ca96c725175ac1631360da (patch)
treea5d6a9dbfb2d08deacfdb08bc4e697a917685544 /fs/cifs/cifs_debug.c
parente79b0332ae06b4895dcecddf4bbc5d3917e9383c (diff)
downloadlinux-072a14ec6386829314ca96c725175ac1631360da.tar.gz
linux-072a14ec6386829314ca96c725175ac1631360da.tar.bz2
linux-072a14ec6386829314ca96c725175ac1631360da.zip
cifs: smbd: Merge code to track pending packets
As an optimization, SMBD tries to track two types of packets: packets with payload and without payload. There is no obvious benefit or performance gain to separately track two types of packets. Just treat them as pending packets and merge the tracking code. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r--fs/cifs/cifs_debug.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index 276e4b5ea8e0..916567d770f5 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -323,10 +323,8 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
atomic_read(&server->smbd_conn->send_credits),
atomic_read(&server->smbd_conn->receive_credits),
server->smbd_conn->receive_credit_target);
- seq_printf(m, "\nPending send_pending: %x "
- "send_payload_pending: %x",
- atomic_read(&server->smbd_conn->send_pending),
- atomic_read(&server->smbd_conn->send_payload_pending));
+ seq_printf(m, "\nPending send_pending: %x ",
+ atomic_read(&server->smbd_conn->send_pending));
seq_printf(m, "\nReceive buffers count_receive_queue: %x "
"count_empty_packet_queue: %x",
server->smbd_conn->count_receive_queue,