The goal of this patchset is to reorganize existing CIFS code to make it easily expandable when SMB2 specific code come into the tree. This let us avoid a code dublication and reduce the whole number of changes coming with SMB2 code. Also fix the long-term bug by using negotiated MaxMpxCount value rather than hardcoded cifs_max_pending. Pavel Shilovsky (11): CIFS: Respect negotiated MaxMpxCount CIFS: Simplify inFlight logic CIFS: Introduce credit-based flow control CIFS: Make wait_for_free_request killable CIFS: Prepare credits code for a slot reservation CIFS: Delete echo_retries module parm CIFS: Separate protocol-specific code from transport routines CIFS: Separate protocol-specific code from demultiplex code CIFS: Separate protocol-specific code from cifs_readv_receive code CIFS: Expand CurrentMid field CIFS: Change mid_q_entry structure fields fs/cifs/README | 6 +- fs/cifs/cifs_debug.c | 28 +++--- fs/cifs/cifs_debug.h | 4 +- fs/cifs/cifsfs.c | 13 +-- fs/cifs/cifsglob.h | 79 ++++++++++--- fs/cifs/cifsproto.h | 14 ++- fs/cifs/cifssmb.c | 106 +++++++++++------- fs/cifs/connect.c | 118 +++++++++----------- fs/cifs/dir.c | 6 +- fs/cifs/file.c | 4 +- fs/cifs/misc.c | 116 ++++++++++++-------- fs/cifs/netmisc.c | 3 +- fs/cifs/transport.c | 297 ++++++++++++++++++++++++++++--------------------- 13 files changed, 457 insertions(+), 337 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html