Skip to content

cifs: convert "strict" writes to be asynchronous

Jeff Layton linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8cifs: add pid field to cifs_writedatafs/cifs/cifsproto.h fs/cifs/cifssmb.c fs/cifs/file.c+4 -21 reply
2/8cifs: allow caller to specify completion op when allocating writedatafs/cifs/cifsproto.h fs/cifs/cifssmb.c fs/cifs/file.c+8 -51 reply
3/8cifs: rename pTcon to tcon in cifs_iovec_writefs/cifs/file.c+4 -51 reply
4/8cifs: fix allocation in cifs_write_allocate_pagesfs/cifs/file.c+6 -71 reply
5/8cifs: make cifsFileInfo_get return the cifsFileInfo pointerfs/cifs/cifsglob.h+3 -11 reply
6/8cifs: fix up get_numpagesfs/cifs/file.c+1 -31 reply
7/8cifs: abstract out function to marshal up the iovec array for async writesfs/cifs/cifsproto.h fs/cifs/cifssmb.c fs/cifs/file.c+31 -101 reply
8/8cifs: convert cifs_iovec_write to use async writesfs/cifs/cifsproto.h fs/cifs/cifssmb.c fs/cifs/file.c+126 -718 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchPavel Shilovsky
1/8R-b
2/8R-b
3/8R-b
4/8A-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/8] cifs: convert "strict" writes to be asynchronous

cifs_iovec_write currently sends writes serially. This patchset changes it to send those writes in parallel instead, and to simply wait for the replies before returning to userspace. With this, I see a performance boost of roughly 20% or so when doing streaming writes without an oplock.

I'd like to see this in linux-next very soon, and then eventually in v3.4.

As a heads up, my goal here is to eventually convert cifs to use strictcache by default since that's what the protocol really mandates. Before we do that though, we need to convert uncached reads and writes to be asynchronous when we don't have an oplock.

Jeff Layton (8):
cifs: add pid field to cifs_writedata
cifs: allow caller to specify completion op when allocating writedata
cifs: rename pTcon to tcon in cifs_iovec_write
cifs: fix allocation in cifs_write_allocate_pages
cifs: make cifsFileInfo_get return the cifsFileInfo pointer
cifs: fix up get_numpages
cifs: abstract out function to marshal up the iovec array for async
writes
cifs: convert cifs_iovec_write to use async writes

 fs/cifs/cifsglob.h  |    4 +-
 fs/cifs/cifsproto.h |    9 ++-
 fs/cifs/cifssmb.c   |   29 +++---
 fs/cifs/file.c      |  239 +++++++++++++++++++++++++++++++++------------------
 4 files changed, 180 insertions(+), 101 deletions(-)
Signature · 1 line
1.7.7.6