lkml.org 
[lkml]   [2017]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [[PATCH v1] 24/37] [CIFS] SMBD: Support for SMBD keep alive protocol
Date
> -----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] 24/37] [CIFS] SMBD: Support for SMBD keep alive
> protocol
>
> SMBD uses a keep alive protocol to help peers detect if the remote is dead.
> When peer request keep alive, the transport needs to respond accordingly.

The keepalive exchange is also used to replenish credits in certain
pathological conditions.

> + // send an emtpy response right away if requested
> + if (le16_to_cpu(data_transfer->flags) |
> + le16_to_cpu(SMB_DIRECT_RESPONSE_REQUESTED)) {
> + info->keep_alive_requested = KEEP_ALIVE_PENDING;
> + }

This is clearly a typo, the condition is always true. "&"??

Tom.

\
 
 \ /
  Last update: 2017-08-14 23:07    [W:0.378 / U:35.104 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site