All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 00/11] cifs: convert async write code to use less kmapping
Date: Tue, 24 Jul 2012 23:23:45 +0400	[thread overview]
Message-ID: <CAKywueSj4b6N23G4yNrw-FEbsyP3Z9g4ASywsJqVhunkn9Op6A@mail.gmail.com> (raw)
In-Reply-To: <1342634346-22818-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

2012/7/18 Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>:
> We currently have a problem with the async write code on CONFIG_HIGHMEM
> architectures. It uses *way* too much kmap space. Not only does this
> limit throughput by adding an artificial bottleneck, but it also can
> lead to deadlocks.
>
> Late in the 3.5 cycle, I sent some patches to limit the rsize and wsize
> on these arches as a temporary workaround. This patchset is a first pass
> at fixing this the right way, by teaching the low-level transport code
> how to deal with arrays of pages.
>
> Note that this is just a fix for the write codepaths. The read side will
> need a separate set of patches.
>
> The code seems to work correctly, and is probably suitable for the
> upcoming 3.6 merge window. This probably also has some non-trivial
> conflicts with Pavel's patches since I did not base this on top of his
> SMB2 work.
>
> Let me know what you plan to merge first for 3.6 and I can try to
> fix those up, or we can ask Pavel to rebase his code on top of this.
>
> Jeff Layton (11):
>   cifs: remove bogus reset of smb_buf_length in smb_send routines
>   cifs: rename cifs_sign_smb2 to cifs_sign_smbv
>   cifs: change signing routines to deal with smb_rqst structs
>   cifs: convert send code to use smb_rqst structs
>   cifs: cork the socket before a send and uncork it afterward
>   cifs: teach smb_send_rqst how to handle arrays of pages
>   cifs: teach signing routines how to deal with arrays of pages in a
>     smb_rqst
>   cifs: change cifs_call_async to use smb_rqst structs
>   cifs: convert async write code to pass in data via rq_pages array
>   cifs: remove the kmap size limit from wsize
>   cifs: add deprecation warning to sockopt=TCP_NODELAY option
>
>  fs/cifs/cifsencrypt.c |   39 +++++++--
>  fs/cifs/cifsproto.h   |   37 ++++++--
>  fs/cifs/cifssmb.c     |   53 ++++++------
>  fs/cifs/connect.c     |   10 ++-
>  fs/cifs/file.c        |   47 ++--------
>  fs/cifs/transport.c   |  227 ++++++++++++++++++++++++++++++++++++-------------
>  6 files changed, 264 insertions(+), 149 deletions(-)
>
> --
> 1.7.10.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

I tested this patchset with cifs and smb2 code with cthon basic test
and it was ok - going to review patches tomorrow.

-- 
Best regards,
Pavel Shilovsky.

      parent reply	other threads:[~2012-07-24 19:23 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 17:58 [PATCH 00/11] cifs: convert async write code to use less kmapping Jeff Layton
     [not found] ` <1342634346-22818-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-18 17:58   ` [PATCH 01/11] cifs: remove bogus reset of smb_buf_length in smb_send routines Jeff Layton
     [not found]     ` <1342634346-22818-2-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:34       ` Pavel Shilovsky
     [not found]         ` <CAKywueSdajZYQoNoBnUsPgm2DbH1FscJ=fiMn5F7Pf0ZV2qxTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-25 12:34           ` Pavel Shilovsky
2012-07-18 17:58   ` [PATCH 02/11] cifs: rename cifs_sign_smb2 to cifs_sign_smbv Jeff Layton
     [not found]     ` <1342634346-22818-3-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:34       ` Pavel Shilovsky
2012-07-18 17:58   ` [PATCH 03/11] cifs: change signing routines to deal with smb_rqst structs Jeff Layton
     [not found]     ` <1342634346-22818-4-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:04       ` Pavel Shilovsky
2012-07-18 17:58   ` [PATCH 04/11] cifs: convert send code to use " Jeff Layton
     [not found]     ` <1342634346-22818-5-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:23       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 05/11] cifs: cork the socket before a send and uncork it afterward Jeff Layton
     [not found]     ` <1342634346-22818-6-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:28       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 06/11] cifs: teach smb_send_rqst how to handle arrays of pages Jeff Layton
     [not found]     ` <1342634346-22818-7-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:28       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 07/11] cifs: teach signing routines how to deal with arrays of pages in a smb_rqst Jeff Layton
     [not found]     ` <1342634346-22818-8-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:29       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 08/11] cifs: change cifs_call_async to use smb_rqst structs Jeff Layton
     [not found]     ` <1342634346-22818-9-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:30       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 09/11] cifs: convert async write code to pass in data via rq_pages array Jeff Layton
     [not found]     ` <1342634346-22818-10-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-24  9:44       ` Pavel Shilovsky
     [not found]         ` <CAKywueTO3OCTV8M4Lo1kSpfZjyHDPDxRZthE-URkr=5=ow-Z2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-24 10:19           ` Jeff Layton
2012-07-24 17:37           ` [PATCH v2 " Jeff Layton
2012-07-18 17:59   ` [PATCH 10/11] cifs: remove the kmap size limit from wsize Jeff Layton
     [not found]     ` <1342634346-22818-11-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:31       ` Pavel Shilovsky
2012-07-18 17:59   ` [PATCH 11/11] cifs: add deprecation warning to sockopt=TCP_NODELAY option Jeff Layton
     [not found]     ` <1342634346-22818-12-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-25 12:31       ` Pavel Shilovsky
2012-07-24 19:23   ` Pavel Shilovsky [this message]

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=CAKywueSj4b6N23G4yNrw-FEbsyP3Z9g4ASywsJqVhunkn9Op6A@mail.gmail.com \
    --to=piastryyy-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@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.