All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stefan (metze) Metzmacher" <metze-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-cifs <linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v3 00/16] SMB 2.1/3 multicredit requests for reading/writing
Date: Tue, 29 Jul 2014 09:40:03 +0200	[thread overview]
Message-ID: <53D74FD3.4050004@samba.org> (raw)
In-Reply-To: <CAKywueRBDjsDVz_uR39xAGbp6VQD40erCvWGX5bWLpFOUJqYtw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

Hi Pavel,

> 2014-07-29 0:14 GMT+04:00 Stefan Metzmacher <metze-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>:
>> Hi Pavel,
>>
>>> The goal of this patchset is to add large MTU/multicredits support for reading and writing from the CIFS client to servers > that support SMB 2.1 and higher versions of the protocol.
>>
>> Are looking at the returned capabilities from the server or just the
>> dialect?
>> The answer should really be the capability, it's wrong to rely on the
>> dialect...
>>
>> metze
> 
> Hi Stefan,
> 
> The code of the patchset is looking at the returned
> MaxReadSize/MaxWriteSize values from the server. If they are greater
> than 64K, the module uses multicredit requests. Also it only works for
> SMB 2.1 and higher versions and is disabled for SMB2.0.
> 
> The spec says (http://msdn.microsoft.com/en-us/library/cc246768.aspx):
> 
> "If the common dialect is SMB 2.1 or 3.x dialect family and the
> underlying connection is either TCP port 445 or RDMA,
> Connection.SupportsMultiCreditMUST be set to TRUE; otherwise, it MUST
> be set to FALSE."
> 
> So, it seems like the server must should multicredit requests if
> negotiating SMB 2.1 or 3.x protocols.
> 
> Anyway, if the server sets MaxRead(Write)Size value to more than 64K
> and does not support multicredit requests, this server looks like a
> broken one.
> 
> I can add a check for MTU capability bit for SMB 2.1 and 3.x protocols
> before the check of MaxRead(Write)Size value and let the code fall
> back to the 64K per request if this bit is missed.

I'd prefer to have this extra check, you never know if some vendors are
crazy
enough to run Samba 4.0.0alpha* release. Samba got SMB2.1 support in
September 2011
and multi-credit support in February 2012.

metze



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 246 bytes --]

  parent reply	other threads:[~2014-07-29  7:40 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 15:45 [PATCH v3 00/16] SMB 2.1/3 multicredit requests for reading/writing Pavel Shilovsky
     [not found] ` <1405957558-18476-1-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-21 15:45   ` [PATCH v3 01/16] CIFS: Fix async reading on reconnects Pavel Shilovsky
2014-07-21 15:45   ` [PATCH v3 02/16] CIFS: Separate page processing from writepages Pavel Shilovsky
2014-07-21 15:45   ` [PATCH v3 03/16] CIFS: Separate page sending " Pavel Shilovsky
     [not found]     ` <1405957558-18476-4-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-22  1:53       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 04/16] CIFS: Separate pages initialization " Pavel Shilovsky
2014-07-21 15:45   ` [PATCH v3 05/16] CIFS: Fix wsize usage in writepages Pavel Shilovsky
     [not found]     ` <1405957558-18476-6-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-22  2:09       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 06/16] CIFS: Fix cifs_writev_requeue when wsize changes Pavel Shilovsky
     [not found]     ` <1405957558-18476-7-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-22  2:14       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 07/16] CIFS: Separate filling pages from iovec write Pavel Shilovsky
     [not found]     ` <1405957558-18476-8-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-22  2:40       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 08/16] CIFS: Separate writing " Pavel Shilovsky
     [not found]     ` <1405957558-18476-9-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-22  2:42       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 09/16] CIFS: Fix wsize usage in " Pavel Shilovsky
     [not found]     ` <1405957558-18476-10-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-23  6:15       ` Shirish Pargaonkar
     [not found]         ` <CADT32eLMseQ00gkywk9KdvcCEks7P5k1sBWdFOM+RaR3g1Edpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-24  3:42           ` Pavel Shilovsky
2014-07-24 13:40       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 10/16] CIFS: Use multicredits for SMB 2.1/3 writes Pavel Shilovsky
     [not found]     ` <1405957558-18476-11-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-25  1:06       ` Shirish Pargaonkar
     [not found]         ` <CADT32e+E5C6gh2+qAt6K6D3NEOx7fZFrWn2sN4Ovs5evQjuW5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-28  7:36           ` Pavel Shilovsky
     [not found]             ` <CAKywueQa8toYf=-XAu_tM12ZSkUiSnc4Pke_sDMpbBP5mXkMEg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-29  7:56               ` Pavel Shilovsky
     [not found]                 ` <CAKywueRfzhBFV7MV1SCLW6R+coxbmJFPNjc9inki+WXYkM-81g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-30  2:06                   ` Shirish Pargaonkar
     [not found]                     ` <CADT32eKD1RBL-53Ap44wC3Fi8mCVwxsyoOgZvc0ED=FYA09SOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-30  7:41                       ` Pavel Shilovsky
     [not found]                         ` <CAKywueSxw0yRvaQ7gnZ5LFTUs3WbNoT_xZqqcTkLJyACCsf5bA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-31  4:23                           ` Steve French
     [not found]                             ` <CAH2r5muVdX2DC1M1=hPTt_XK4vzWt+vLYZ0-qsCr9eABGSjvYA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-31  6:38                               ` Pavel Shilovsky
     [not found]                                 ` <CAKywueRByBX+sVnHe-TNsd0W4MzjKqW0e7SE2yDrq88VOmafhQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-01  5:58                                   ` Steve French
     [not found]                                     ` <CAH2r5mvMkhMLjXqQW7jqBSfWObQRb5cTUMP=SNPCb2Pd9ws+Yg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-01  9:50                                       ` Pavel Shilovsky
2014-07-21 15:45   ` [PATCH v3 11/16] CIFS: Separate page search from readpages Pavel Shilovsky
     [not found]     ` <1405957558-18476-12-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-26 16:40       ` Shirish Pargaonkar
     [not found]         ` <CADT32e+_wwbnXFDAp_Sv22yn1-Y-jqccBqUfUiSjkbXRPATTOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-26 17:08           ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 12/16] CIFS: Fix rsize usage in readpages Pavel Shilovsky
     [not found]     ` <1405957558-18476-13-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-26 17:07       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 13/16] CIFS: Separate page reading from user read Pavel Shilovsky
     [not found]     ` <1405957558-18476-14-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-27 12:21       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 14/16] CIFS: Fix rsize usage in " Pavel Shilovsky
     [not found]     ` <1405957558-18476-15-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-27 12:37       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 15/16] CIFS: Fix rsize usage for sync read Pavel Shilovsky
     [not found]     ` <1405957558-18476-16-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-27 12:49       ` Shirish Pargaonkar
2014-07-21 15:45   ` [PATCH v3 16/16] CIFS: Use multicredits for SMB 2.1/3 reads Pavel Shilovsky
     [not found]     ` <1405957558-18476-17-git-send-email-pshilovsky-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-27 13:05       ` Shirish Pargaonkar
     [not found]         ` <CADT32eKvR0xj3oi=BMkwGd5r4OcuEMkK_JxOosoxFkSFAcUe1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-28  7:43           ` Pavel Shilovsky
2014-07-28 20:14   ` [PATCH v3 00/16] SMB 2.1/3 multicredit requests for reading/writing Stefan Metzmacher
     [not found]     ` <53D6AF1E.4030804-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-29  6:19       ` Pavel Shilovsky
     [not found]         ` <CAKywueRBDjsDVz_uR39xAGbp6VQD40erCvWGX5bWLpFOUJqYtw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-29  7:40           ` Stefan (metze) Metzmacher [this message]
     [not found]             ` <53D74FD3.4050004-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2014-07-29  8:02               ` Pavel Shilovsky
     [not found]                 ` <CAKywueRKxRosFGRGBG-c4r8Sq07kO0vue5NP=kwv+KfkDZ919A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-29  8:03                   ` Stefan (metze) Metzmacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53D74FD3.4050004@samba.org \
    --to=metze-eunubhrolfbytjvyw6ydsg@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.