summaryrefslogtreecommitdiff
path: root/fs/cifs/smbdirect.h
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2020-03-30 21:04:06 +0300
committerSteve French <stfrench@microsoft.com>2020-04-07 20:41:16 +0300
commit072a14ec6386829314ca96c725175ac1631360da (patch)
treea5d6a9dbfb2d08deacfdb08bc4e697a917685544 /fs/cifs/smbdirect.h
parente79b0332ae06b4895dcecddf4bbc5d3917e9383c (diff)
downloadlinux-072a14ec6386829314ca96c725175ac1631360da.tar.xz
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/smbdirect.h')
-rw-r--r--fs/cifs/smbdirect.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/cifs/smbdirect.h b/fs/cifs/smbdirect.h
index 8ede915f2b24..f70c7119a456 100644
--- a/fs/cifs/smbdirect.h
+++ b/fs/cifs/smbdirect.h
@@ -114,8 +114,6 @@ struct smbd_connection {
/* Activity accoutning */
atomic_t send_pending;
wait_queue_head_t wait_send_pending;
- atomic_t send_payload_pending;
- wait_queue_head_t wait_send_payload_pending;
/* Receive queue */
struct list_head receive_queue;
@@ -234,9 +232,6 @@ struct smbd_request {
struct smbd_connection *info;
struct ib_cqe cqe;
- /* true if this request carries upper layer payload */
- bool has_payload;
-
/* the SGE entries for this packet */
struct ib_sge sge[SMBDIRECT_MAX_SGE];
int num_sge;