All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Jeremy Allison <jra-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Pavel Shilovsky <piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	crh-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org
Subject: Re: [PATCH 06/11] CIFS: Respect MaxMpxCount field
Date: Thu, 1 Mar 2012 14:12:48 -0500	[thread overview]
Message-ID: <20120301141248.1e6fb722@samba.org> (raw)
In-Reply-To: <20120301184823.GE1930@jeremy-laptop>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 1 Mar 2012 10:48:23 -0800
Jeremy Allison <jra@samba.org> wrote:

> On Thu, Mar 01, 2012 at 01:37:47PM -0500, Jeff Layton wrote:
> > 
> > (cc'ing Chris and Jeremy to make sure I understand)
> > 
> > The description above is a good start but doesn't quite outline the
> > clear concise "rules" for this that I was looking for.
> > 
> > So if I understand what Steve wrote above, he's basically saying that
> > we should enforce the maxmpx for everything but blocking locks and
> > echoes? Is that correct? If so then I think that's wrong and won't fix
> > any of the problems that people have reported with the existing code.
> > 
> > It's all well and good that *some* servers allow you to exceed the
> > maxmpx in *some* cases, but we can't code to that assumption. We know
> > well that many servers do not handle exceeding the maxmpx gracefully at
> > all. As always we have to code to the lowest common denominator by
> > default, and then optionally allow people to exceed that if they choose
> > to do so.
> > 
> > I think this is a case where we need a good description in a human
> > language (preferably english) of how this should work (aka a
> > specification), and then write code to match that description (aka code
> > to the spec).
> > 
> > Anything else is going to send us down the rabbit hole where we are
> > today with cifs.ko -- a bunch of ad-hoc, broken code that no one really
> > understands.
> > 
> > While we may not like it, a hard cap on the number of outstanding
> > requests is required by the protocol docs that Chris helped write.
> > 
> > Allow me to quote from MS-CIFS:
> > 
> > MaxMpxCount (2 bytes): The maximum number of outstanding SMB operations
> > that the server supports. This value includes existing OpLocks, the
> > NT_TRANSACT_NOTIFY_CHANGE subcommand, and any other commands that are
> > pending on the server.
> > 
> > There's nothing in there that says anything about certain commands
> > being excepted from that value.
> 
> The only way to know this for sure is to put in a request
> to Microsoft doc-help to ask if SMBecho and blocking SMB
> locks are exempted from the maxmpx count.
> 

That will probably tell us what Windows does, but the problems are not
necessarily with Windows servers. There are a lot of crappy CIFS
servers in the field and Microsoft can't tell us how they behave in
this regard.

Still, it won't hurt to ask, so I'll do so...I just don't think their
answer will have much bearing on what we'll eventually have to
implement.


- -- 
Jeff Layton <jlayton@samba.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)

iQIcBAEBAgAGBQJPT8owAAoJEAAOaEEZVoIVkVAQAK7Z9a+krmXnUQmbfjYr+jEd
bvpXp2FWpiJxzhnv4EQPoMHlWUjYc2mCLeOvo/42pcYzDzx0Gko4F9hfJJTB7Rj6
RqueGzJpvjpuw+HNo3t0YUXU+/OU2E+OBCEnuQ5a7K2sJGI4BUmXLfXKeCaWL8Bz
5H/CdbUkzFM6TH9QTe7vbwkHRgTBqMPd7Ugy1crWWO0thJpkRF9MkJCCdaXIxkgP
LiN10E5D5wkfTdb0SWAhYvc8FvEkS8wKEQcM+BN45PqaWiW2gMZpS4cgQdcWzH1I
Dlz2zJlMZlV5f71DQVHCDvlY44TfN/LjlnA1+wW6h/QhJomJQhZKzTk2aqThiF4h
iNCOPvlDuBab0ZAynGj7VA4KZ0DNY/CVrqH20OHW9ROkLCjcqCHgvx5eEGXPkWcm
HhY88eWpmrj7nxZ+zqipKwlJas8Zu7NYixGWEPQ3j+dxebhxLKfqBDQBgpXpoZFH
WhEp5L33RF4NUkKy0ToihXjxp8HLEFhfOAgTzbKJS4GtPDfyckXqw3yL967gZEV3
LJEBjI5+kjUOEIHt+/uhSQDVM/uT+sFMQpBbtGguK0k4WIIbFgT3cvG/SnCUIdXB
O9jEZTZ7DtZY6rG35Kq05usclWFz9Fi2u/FVTqZxJcM8ufuY5c5vApL9SPgzN7zr
qGPm7BM6MP2x+kVL3fHs
=clwm
-----END PGP SIGNATURE-----

  reply	other threads:[~2012-03-01 19:12 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  7:32 [PATCH 0/11] Improve transport code for future SMB2 usage Pavel Shilovsky
     [not found] ` <1329895984-9251-1-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-22  7:32   ` [PATCH 01/11] CIFS: Simplify inFlight logic Pavel Shilovsky
     [not found]     ` <1329895984-9251-2-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-27 22:53       ` Steve French
     [not found]         ` <CAH2r5msNLEF9qVvKsTVTUnPyUjk+7iYVJTxZgd_uuXLAE0iyRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28  9:38           ` Pavel Shilovsky
     [not found]             ` <CAKywueQNFbwDqwr7adWsUZmaYX28tz3kYnL1=4itBHAFV1aeaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28 11:31               ` Jeff Layton
     [not found]                 ` <20120228063120.76265cd9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-02-28 11:39                   ` Pavel Shilovsky
2012-03-03  9:33           ` Pavel Shilovsky
2012-02-22  7:32   ` [PATCH 02/11] CIFS: Introduce credit-based flow control Pavel Shilovsky
2012-02-22  7:32   ` [PATCH 03/11] CIFS: Count blocking lock command Pavel Shilovsky
     [not found]     ` <1329895984-9251-4-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-27 23:23       ` Steve French
     [not found]         ` <CAH2r5mujUbTEe0xtk_sfM1xokCk7FnX=6JKO539ut88Z+RS7wA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28  9:40           ` Pavel Shilovsky
2012-02-22  7:32   ` [PATCH 04/11] CIFS: Delete echo_retries module parm Pavel Shilovsky
     [not found]     ` <1329895984-9251-5-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-22 16:23       ` Jeff Layton
     [not found]         ` <20120222112323.3d1afe4b-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-02-23  6:16           ` Pavel Shilovsky
2012-02-27 23:39       ` Steve French
2012-02-22  7:32   ` [PATCH 05/11] CIFS: Make wait_for_free_request interruptible Pavel Shilovsky
     [not found]     ` <1329895984-9251-6-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-22 19:15       ` Jeff Layton
     [not found]         ` <20120222141534.5512c3bf-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-02-23  6:18           ` Pavel Shilovsky
     [not found]             ` <CAKywueR7tggS99buChze5WHFY2=daoHUkO41F+WTNfqRT64Syw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-27 23:54               ` Steve French
2012-02-22  7:32   ` [PATCH 06/11] CIFS: Respect MaxMpxCount field Pavel Shilovsky
     [not found]     ` <1329895984-9251-7-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-28  0:01       ` Steve French
     [not found]         ` <CAH2r5mvVToaHozN3=YgCCCWFFnjE9AP5xX_BF2JdxDj_JvKsbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28 16:43           ` Jeff Layton
     [not found]             ` <20120228114341.1629ed85-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-02-28 17:42               ` Steve French
     [not found]                 ` <CAH2r5mvFyw8Cn8nXN9ZBZogBGVr5L5T9aX7Zs8DOiZgDUqGp1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28 19:47                   ` Jeff Layton
     [not found]                     ` <20120228144736.18124fc3-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-02-28 20:03                       ` Steve French
     [not found]                         ` <CAH2r5mvJE+ACNVuv+HEQMuwvaMTzfOb7Msk4U1ZVnZ046AEi1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28 20:53                           ` Pavel Shilovsky
     [not found]                             ` <CAKywueSxe_wZwudx3UK14C94o53zjghsTJJSah=CQSqy0uhZRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-28 21:18                               ` Steve French
     [not found]                                 ` <CAH2r5mvFiwpVwcBgfuXvEGC1_8snLMAsp4fRVEDMqTWXDJdu9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-01 18:37                                   ` Jeff Layton
     [not found]                                     ` <20120301133747.5fc891b5-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-03-01 18:48                                       ` Jeremy Allison
2012-03-01 19:12                                         ` Jeff Layton [this message]
2012-03-01 19:18                                         ` Christopher R. Hertel
     [not found]                                           ` <4F4FCB69.6060705-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-03-02 15:45                                             ` Jeff Layton
2012-03-03  8:35           ` Pavel Shilovsky
     [not found]             ` <CAKywueRwzdak2LfpfVkiX2ue0A-0a15J9kO8kgUYseRPXM8Tfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-03 12:09               ` Jeff Layton
     [not found]                 ` <20120303070921.5ce2bb10-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-03-04  3:14                   ` Steve French
     [not found]                     ` <CAH2r5mvGjzS73bhgG54Yzcqui9qxfv7e3yrxWZX+weSUQB4cHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-04 11:30                       ` Jeff Layton
2012-03-09 12:39                       ` Jeff Layton
     [not found]                         ` <20120309073930.3a79fa10-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-03-09 16:45                           ` Steve French
     [not found]                             ` <CAH2r5mvzgnTcyhL-Rip9yHUEMsLOCFhfAoNdRyVqhNFin_A6mw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-09 19:04                               ` Christopher R. Hertel
     [not found]                                 ` <4F5A543D.2040808-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-03-09 20:14                                   ` Jeremy Allison
2012-03-09 20:16                                     ` Steve French
     [not found]                                       ` <CAH2r5mvMWOVrKXYJjcKYwUR+yaJpzYysDoc+TvPmfN+RDHAQ5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-09 21:07                                         ` Christopher R. Hertel
     [not found]                                           ` <4F5A712C.8030500-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-03-12 15:09                                             ` Jeff Layton
2012-03-09 21:05                                     ` Christopher R. Hertel
     [not found]                                       ` <4F5A70A3.906-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-03-09 21:14                                         ` Jeremy Allison
2012-02-22  7:33   ` [PATCH 07/11] CIFS: Separate protocol-specific code from transport routines Pavel Shilovsky
     [not found]     ` <1329895984-9251-8-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2012-02-28  0:03       ` Steve French
2012-02-22  7:33   ` [PATCH 08/11] CIFS: Separate protocol-specific code from demultiplex code Pavel Shilovsky
2012-02-22  7:33   ` [PATCH 09/11] CIFS: Separate protocol-specific code from cifs_readv_receive code Pavel Shilovsky
2012-02-22  7:33   ` [PATCH 10/11] CIFS: Expand CurrentMid field Pavel Shilovsky
2012-02-22  7:33   ` [PATCH 11/11] CIFS: Change mid_q_entry structure fields Pavel Shilovsky

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=20120301141248.1e6fb722@samba.org \
    --to=jlayton-eunubhrolfbytjvyw6ydsg@public.gmane.org \
    --cc=crh-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
    --cc=jra-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org \
    --cc=smfrench-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.