Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1711474 > unrolled thread

RE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when it's needed

Started byTom Talpey <ttalpey@microsoft.com>
First post2017-08-14 23:20 +0200
Last post2017-08-14 23:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when  it's needed Tom Talpey <ttalpey@microsoft.com> - 2017-08-14 23:20 +0200

#1711474 — RE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when it's needed

FromTom Talpey <ttalpey@microsoft.com>
Date2017-08-14 23:20 +0200
SubjectRE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when it's needed
Message-ID<ueuWe-Mv-33@gated-at.bofh.it>
> -----Original Message-----
> From: linux-cifs-owner@vger.kernel.org [mailto:linux-cifs-
> owner@vger.kernel.org] On Behalf Of Long Li
> Sent: Wednesday, August 2, 2017 4:11 PM
> To: Steve French <sfrench@samba.org>; linux-cifs@vger.kernel.org; samba-
> technical@lists.samba.org; linux-kernel@vger.kernel.org
> Cc: Long Li <longli@microsoft.com>
> Subject: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when it's
> needed
> 
> +/*
> + * Check and schedule to send an immediate packet
> + * This is used to extend credtis to remote peer to keep the transport busy
> + */
> +static void check_and_send_immediate(struct cifs_rdma_info *info)
> +{
> +       info->send_immediate = true;
> +
> +       // promptly send a packet if running low on receive credits

...if *our peer* is running low on credits.

> +       if (atomic_read(&info->receive_credits) <
> +           atomic_read(&info->receive_credit_target) -1 )

Why read the receive_credit_target atomically? It's a mostly unchanging local value?

Tom.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web