[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CY4PR21MB01821B871B31119849F56D2BA08C0@CY4PR21MB0182.namprd21.prod.outlook.com>
Date: Mon, 14 Aug 2017 21:15:33 +0000
From: Tom Talpey <ttalpey@...rosoft.com>
To: Long Li <longli@...rosoft.com>, Steve French <sfrench@...ba.org>,
"linux-cifs@...r.kernel.org" <linux-cifs@...r.kernel.org>,
"samba-technical@...ts.samba.org" <samba-technical@...ts.samba.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: Long Li <longli@...rosoft.com>
Subject: RE: [[PATCH v1] 26/37] [CIFS] SMBD: Send an immediate packet when
it's needed
> -----Original Message-----
> From: linux-cifs-owner@...r.kernel.org [mailto:linux-cifs-
> owner@...r.kernel.org] On Behalf Of Long Li
> Sent: Wednesday, August 2, 2017 4:11 PM
> To: Steve French <sfrench@...ba.org>; linux-cifs@...r.kernel.org; samba-
> technical@...ts.samba.org; linux-kernel@...r.kernel.org
> Cc: Long Li <longli@...rosoft.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.
Powered by blists - more mailing lists