Skip to content

cifs: overhaul request timeout behavior in CIFS (try #4)

Jeff Layton linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18cifs: don't fail writepages on -EAGAIN errorsfs/cifs/file.c+37 -120 replies
2/18cifs: no need to mark smb_ses_list as cifs_demultiplex_thread is exitingfs/cifs/connect.c+3 -410 replies
3/18cifs: make wait_for_free_request take a TCP_Server_Info pointerfs/cifs/transport.c+13 -130 replies
4/18cifs: clean up accesses to midCountfs/cifs/cifs_debug.c fs/cifs/connect.c fs/cifs/transport.c+5 -50 replies
5/18cifs: move locked sections out of DeleteMidQEntry and AllocMidQEntryfs/cifs/transport.c+24 -170 replies
6/18cifs: move mid result processing into common functionfs/cifs/transport.c+43 -780 replies
7/18cifs: wait indefinitely for responsesfs/cifs/transport.c+17 -930 replies
8/18cifs: don't reconnect server when we don't get a responsefs/cifs/transport.c+1 -30 replies
9/18cifs: clean up sync_mid_resultfs/cifs/transport.c+18 -172 replies
10/18cifs: allow for different handling of received responsefs/cifs/cifs_debug.c fs/cifs/cifsglob.h fs/cifs/connect.c +1 more+60 -350 replies
11/18cifs: handle cancelled requests betterfs/cifs/transport.c+36 -71 reply
12/18cifs: add cifs_call_asyncfs/cifs/cifsproto.h fs/cifs/transport.c+62 -10 replies
13/18cifs: add ability to send an echo requestfs/cifs/cifspdu.h fs/cifs/cifsproto.h fs/cifs/cifssmb.c +1 more+65 -10 replies
14/18cifs: set up recurring workqueue job to do SMB echo requestsfs/cifs/cifsglob.h fs/cifs/connect.c+30 -00 replies
15/18cifs: reconnect unresponsive serversfs/cifs/cifsfs.c fs/cifs/cifsglob.h fs/cifs/connect.c+25 -42 replies
16/18cifs: remove code for setting timeouts on requestsfs/cifs/cifsglob.h fs/cifs/cifssmb.c fs/cifs/connect.c +3 more+17 -500 replies
17/18cifs: mangle existing header for SMB_COM_NT_CANCELfs/cifs/transport.c+38 -250 replies
18/18cifs: send an NT_CANCEL request when a process is signalledfs/cifs/transport.c+12 -30 replies

Reviews trailers per patch

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

PatchSuresh JayaramanPavel Shilovsky
1/18R-b R-b
2/18R-b R-b
3/18R-b R-b
4/18R-b R-b
5/18R-b R-b
6/18R-b R-b
7/18R-b R-b
8/18R-b R-b
9/18R-b
10/18R-b
11/18R-b R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b R-b
16/18R-b R-b
17/18R-b R-b
18/18R-b R-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 00/18] cifs: overhaul request timeout behavior in CIFS (try #4)

This is the fourth patchset to clean up request timeout behavior in cifs. There are only minor changes since the last set. Some of the patches still need review. Here's an overview of what has changed:

- minor comment fix in patch 10

- the server echo "timeout" is now tunable via module parameter. It's also possible to set the timeout to 0, to stop the client from performing a reconnect at all.

The main impetus of this patchset is to change the way CIFS handles SMB requests that are taking a long time. I won't rewrite all of that information, but the description is available here:

    http://marc.info/?l=linux-cifs&m=129199588315592&w=2

Another discussion thread surrounding this change is also available here:

    http://marc.info/?l=linux-cifs&m=129142970724511&w=2

I think there is some further work needed in this area, but this is a good stopping point for 2.6.38 and it seems to fix the most glaring problems. I'd like to see this merged during the next merge window if possible.

Comments and suggestions welcome...

Jeff Layton (18):
cifs: don't fail writepages on -EAGAIN errors
cifs: no need to mark smb_ses_list as cifs_demultiplex_thread is
exiting
cifs: make wait_for_free_request take a TCP_Server_Info pointer
cifs: clean up accesses to midCount
cifs: move locked sections out of DeleteMidQEntry and AllocMidQEntry
cifs: move mid result processing into common function
cifs: wait indefinitely for responses
cifs: don't reconnect server when we don't get a response
cifs: clean up sync_mid_result
cifs: allow for different handling of received response
cifs: handle cancelled requests better
cifs: add cifs_call_async
cifs: add ability to send an echo request
cifs: set up recurring workqueue job to do SMB echo requests
cifs: reconnect unresponsive servers
cifs: remove code for setting timeouts on requests
cifs: mangle existing header for SMB_COM_NT_CANCEL
cifs: send an NT_CANCEL request when a process is signalled

 fs/cifs/cifs_debug.c |   10 +-
 fs/cifs/cifsglob.h   |   25 ++-
 fs/cifs/cifspdu.h    |   15 ++
 fs/cifs/cifsproto.h  |    7 +
 fs/cifs/cifssmb.c    |   55 ++++++-
 fs/cifs/connect.c    |  150 +++++++++--------
 fs/cifs/file.c       |   93 +++++------
 fs/cifs/sess.c       |    2 +-
 fs/cifs/transport.c  |  463 ++++++++++++++++++++++++++------------------------
 9 files changed, 459 insertions(+), 361 deletions(-)
Signature · 1 line
1.7.3.3