aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
AgeCommit message (Expand)AuthorFilesLines
2023-05-24smb: move client and server files to common directory fs/smbSteve French1-1810/+0
2023-03-05cifs: Move the in_send statistic to __smb_send_rqst()Zhang Xiaoxu1-12/+9
2023-02-21cifs: use the least loaded channel for sending requestsShyam Prasad N1-4/+29
2023-02-20cifs: Change the I/O paths to use an iterator rather than a page listDavid Howells1-38/+16
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-3/+3
2022-10-10Merge tag 'sched-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+3
2022-09-13cifs: always initialize struct msghdr smb_msg completelyStefan Metzmacher1-5/+1
2022-09-13cifs: don't send down the destination address to sendmsg for a SOCK_STREAMStefan Metzmacher1-2/+2
2022-09-07freezer,sched: Rewrite core freezer logicPeter Zijlstra1-2/+3
2022-08-24cifs: Add helper function to check smb1+ serverZhang Xiaoxu1-2/+2
2022-08-24cifs: Use help macro to get the header preamble sizeZhang Xiaoxu1-11/+10
2022-08-05cifs: alloc_mid function should be marked as staticSteve French1-1/+1
2022-08-05cifs: remove useless DeleteMidQEntry()Enzo Matsumiya1-31/+26
2022-08-05cifs: when insecure legacy is disabled shrink amount of SMB1 codeSteve French1-0/+179
2022-08-01cifs: avoid use of global locks for high contention dataShyam Prasad N1-47/+49
2022-08-01cifs: remove some camelCase and also some static build warningsSteve French1-2/+2
2022-06-01cifs: fix potential deadlock in direct reclaimVincent Whitchurch1-20/+20
2022-05-24cifs: use new enum for ses_statusShyam Prasad N1-4/+4
2022-04-18cifs: Use kzalloc instead of kmalloc/memsetHaowen Bai1-2/+1
2022-04-08cifs: Split the smb3_add_credits tracepointDavid Howells1-2/+2
2022-03-18cifs: use a different reconnect helper for non-cifsd threadsShyam Prasad N1-1/+1
2022-02-08cifs: call helper functions for marking channels for reconnectShyam Prasad N1-4/+1
2022-01-19cifs: protect all accesses to chan_* with chan_lockShyam Prasad N1-0/+3
2022-01-19cifs: fix the connection state transitions with multichannelShyam Prasad N1-12/+2
2022-01-07cifs: avoid race during socket reconnect between send and recvShyam Prasad N1-11/+2
2022-01-07cifs: take cifs_tcp_ses_lock for status checksShyam Prasad N1-8/+47
2022-01-02cifs: use the chans_need_reconnect bitmap for reconnect statusShyam Prasad N1-14/+14
2021-11-12cifs: protect session channel fields with chan_lockShyam Prasad N1-0/+3
2021-09-13cifs: remove pathname for file from SPDX headerSteve French1-1/+0
2021-07-02cifs: make locking consistent around the server session statusSteve French1-0/+2
2021-06-20cifs: use SPDX-Licence-IdentifierSteve French1-13/+1
2021-03-14cifs: Fix preauth hash corruptionVincent Whitchurch1-1/+6
2021-03-08cifs: do not send close in compound create+close requestsPaulo Alcantara1-1/+1
2021-03-08cifs: change noisy error message to FYIPaulo Alcantara1-1/+1
2021-02-16cifs: Identify a connection by a conn_id.Shyam Prasad N1-14/+39
2021-02-16cifs: Fix in error types returned for out-of-credit situations.Shyam Prasad N1-3/+3
2021-02-16cifs: New optype for session operations.Shyam Prasad N1-2/+2
2021-02-05smb3: fix crediting for compounding when only one request in flightPavel Shilovsky1-3/+15
2021-01-23cifs: do not fail __smb_send_rqst if non-fatal signals are pendingRonnie Sahlberg1-2/+2
2020-12-15cifs: Tracepoints and logs for tracing credit changes.Shyam Prasad N1-0/+15
2020-11-30cifs: allow syscalls to be restarted in __smb_send_rqst()Paulo Alcantara1-2/+2
2020-10-20smb3: add dynamic trace point to trace when credits obtainedSteve French1-2/+3
2020-08-02cifs`: handle ERRBaduid for SMB1Roberto Bergantinos Corpas1-1/+1
2020-07-01cifs: prevent truncation from long to int in wait_for_free_creditsRonnie Sahlberg1-1/+1
2020-06-05Merge tag '5.8-rc-smb3-fixes-part-1' of git://git.samba.org/sfrench/cifs-2.6Linus Torvalds1-30/+45
2020-06-04cifs: multichannel: move channel selection above transport layerAurelien Aptel1-7/+7
2020-06-02cifs: multichannel: move channel selection in functionAurelien Aptel1-11/+27
2020-06-01cifs: Standardize logging outputJoe Perches1-13/+12
2020-05-28tcp: add tcp_sock_set_corkChristoph Hellwig1-6/+2
2020-03-29cifs: Allocate encryption header through kmallocLong Li1-11/+17
2020-01-26CIFS: Fix task struct use-after-free on reconnectVincent Whitchurch1-0/+3
2019-11-25cifs: try opening channels after mountingAurelien Aptel1-1/+12
2019-11-25cifs: add server paramAurelien Aptel1-2/+3
2019-11-25cifs: smbd: Return -EAGAIN when transport is reconnectingLong Li1-2/+5
2019-11-25CIFS: Do not miss cancelled OPEN responsesPavel Shilovsky1-2/+8
2019-11-25cifs: rename a variable in SendReceive()Dan Carpenter1-1/+1
2019-10-24CIFS: Fix retry mid list corruption on reconnectsPavel Shilovsky1-19/+23
2019-09-16smb3: display max smb3 requests in flight at any one timeSteve French1-0/+4
2019-09-16cifs: add a debug macro that prints \\server\share for errorsRonnie Sahlberg1-2/+2
2019-09-16cifs: fix dereference on ses before it is null checkedColin Ian King1-1/+2
2019-09-16cifs: add new debugging macro cifs_server_dbgRonnie Sahlberg1-56/+59
2019-07-07smb3: minor cleanup of compound_send_recvAurelien Aptel1-22/+24
2019-05-12cifs: use the right include for signal_pending()Ronnie Sahlberg1-1/+1
2019-05-07cifs: rename and clarify CIFS_ASYNC_OP and CIFS_NO_RESPRonnie Sahlberg1-6/+3
2019-05-07cifs: fix credits leak for SMB1 oplock breaksRonnie Sahlberg1-5/+5
2019-05-07cifs: smbd: take an array of reqeusts when sending upper layer dataLong Li1-1/+1
2019-05-07SMB3: Track total time spent on roundtrips for each SMB3 commandSteve French1-4/+23
2019-03-14cifs: simplify how we handle credits in compound_send_recv()Ronnie Sahlberg1-72/+38
2019-03-14smb3: add dynamic tracepoint for timeout waiting for creditsSteve French1-0/+5
2019-03-14cifs: add a timeout argument to wait_for_free_creditsRonnie Sahlberg1-10/+30
2019-03-14cifs: prevent starvation in wait_for_free_credits for multi-credit requestsRonnie Sahlberg1-0/+28
2019-03-14cifs: wait_for_free_credits() make it possible to wait for >=1 creditsRonnie Sahlberg1-7/+7
2019-03-14cifs: pass flags down into wait_for_free_credits()Ronnie Sahlberg1-16/+14
2019-03-14cifs: change wait_for_free_request() to take flags as argumentRonnie Sahlberg1-16/+17
2019-03-05CIFS: Mask off signals when sending SMB packetsPavel Shilovsky1-3/+38
2019-03-05CIFS: Return -EAGAIN instead of -ENOTSOCKPavel Shilovsky1-1/+2
2019-03-05CIFS: Try to acquire credits at once for compound requestsPavel Shilovsky1-5/+34
2019-03-05CIFS: Check for reconnects before sending compound requestsPavel Shilovsky1-2/+36
2019-03-05CIFS: Check for reconnects before sending async requestsPavel Shilovsky1-2/+16
2019-03-05CIFS: Respect reconnect in non-MTU credits calculationsPavel Shilovsky1-18/+36
2019-03-05CIFS: Respect reconnect in MTU credits calculationsPavel Shilovsky1-6/+7
2019-03-04CIFS: Do not skip SMB2 message IDs on send failuresPavel Shilovsky1-1/+5
2019-01-24CIFS: Fix credit calculations in compound mid callbackPavel Shilovsky1-10/+1
2019-01-11CIFS: Move credit processing to mid callbacks for SMB3Pavel Shilovsky1-17/+34
2019-01-11CIFS: Fix credits calculation for cancelled requestsPavel Shilovsky1-2/+26
2019-01-11CIFS: Do not hide EINTR after sending network packetsPavel Shilovsky1-1/+1
2019-01-10CIFS: Fix credit computation for compounded requestsPavel Shilovsky1-18/+41
2019-01-10CIFS: Do not set credits to 1 if the server didn't grant anythingPavel Shilovsky1-2/+0
2018-12-23cifs: smb2 commands can not be negative, remove confusing checkSteve French1-3/+5
2018-11-01Merge branch 'work.afs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-5/+3
2018-10-24smb3: add debug for unexpected mid cancellationSteve French1-2/+2
2018-10-23CIFS: Print message when attempting a mountRodrigo Freire1-1/+1
2018-10-23smb3: add way to control slow response threshold for logging and statsSteve French1-3/+12
2018-10-23cifs: fix a credits leak for compund commandsRonnie Sahlberg1-20/+37
2018-10-24iov_iter: Separate type from direction and use accessor functionsDavid Howells1-5/+3
2018-10-02cifs: only wake the thread for the very last PDU in a compoundRonnie Sahlberg1-1/+17
2018-10-02cifs: add a warning if we try to to dequeue a deleted midRonnie Sahlberg1-1/+2
2018-08-09cifs: update receive_encrypted_standard to handle compounded responsesRonnie Sahlberg1-2/+0
2018-08-07smb3: display stats counters for number of slow commandsSteve French1-0/+5
2018-08-07smb3: add tracepoint for slow responsesSteve French1-2/+6
2018-08-07cifs: add compound_send_recv()Ronnie Sahlberg1-66/+90
2018-08-07cifs: make smb_send_rqst take an array of requestsRonnie Sahlberg1-8/+13
2018-08-07cifs: update init_sg, crypt_message to take an array of rqstRonnie Sahlberg1-7/+20
2018-08-07smb3: add reconnect tracepointsSteve French1-0/+2
2018-08-07smb3: simplify code by removing CONFIG_CIFS_SMB311Steve French1-4/+0
2018-07-05cifs: fix SMB1 breakageRonnie Sahlberg1-4/+5
2018-07-05cifs: Fix use after free of a mid_q_entryLars Persson1-1/+17
2018-06-15cifs: Use correct packet length in SMB2_TRANSFORM headerPaulo Alcantara1-5/+14
2018-06-15cifs: Fix kernel oops when traceSMB is enabledPaulo Alcantara1-5/+5
2018-06-15cifs: update __smb_send_rqst() to take an array of requestsRonnie Sahlberg1-35/+44
2018-06-15cifs: remove smb2_send_recv()Ronnie Sahlberg1-17/+0
2018-06-15cifs: push rfc1002 generation down the stackRonnie Sahlberg1-50/+32
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-4/+4
2018-06-05CIFS: When sending data on socket, pass the correct page offsetLong Li1-8/+6
2018-06-05CIFS: Calculate the correct request length based on page offset and tail sizeLong Li1-3/+17
2018-05-31cifs: remove rfc1002 header from all SMB2 response structuresRonnie Sahlberg1-2/+2
2018-04-25SMB311: Fix reconnectSteve French1-2/+2
2018-04-24CIFS: set *resp_buf_type to NO_BUFFER on errorSteve French1-1/+4
2018-04-12cifs: add resp_buf_size to the mid_q_entry structureRonnie Sahlberg1-1/+1
2018-04-02cifs: add server->vals->header_preamble_sizeRonnie Sahlberg1-1/+2
2018-04-01CIFS: implement v3.11 preauth integrityAurelien Aptel1-0/+17
2018-01-24CIFS: SMBD: Upper layer sends data via RDMA sendLong Li1-2/+6
2018-01-24cifs: avoid a kmalloc in smb2_send_recv/SendReceive2 for the common caseRonnie Sahlberg1-10/+23
2018-01-24cifs: Add smb2_send_recvRonnie Sahlberg1-0/+38
2017-07-05cifs: Do not modify mid entry after submitting I/O in cifs_call_asyncLong Li1-2/+5
2017-05-12fs: cifs: transport: Use time_after for time comparisonKarim Eshapa1-1/+1
2017-05-09Don't delay freeing mids when blocked on slow socket write of requestSteve French1-2/+0
2017-04-28cifs: don't check for failure from mempool_alloc()NeilBrown1-18/+14
2017-04-07Handle mismatched open callsSachin Prabhu1-0/+2
2017-02-01CIFS: Add mid handle callbackPavel Shilovsky1-2/+3
2017-02-01CIFS: Add capability to transform requests before sendingPavel Shilovsky1-8/+25
2017-02-01CIFS: Separate RFC1001 length processing for SMB2 readPavel Shilovsky1-1/+1
2017-02-01CIFS: Send RFC1001 length in a separate iovPavel Shilovsky1-21/+65
2017-02-01CIFS: Make send_cancel take rqst as argumentPavel Shilovsky1-14/+19
2017-02-01CIFS: Make SendReceive2() takes resp iovPavel Shilovsky1-21/+9
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-11-01block,fs: untangle fs.h and blk_types.hChristoph Hellwig1-0/+1
2016-03-28cifs: quit playing games with draining iovecsAl Viro1-100/+41
2016-01-14cifs: fix race between call_async() and reconnect()Rabin Vincent1-2/+4
2015-08-20cifs: Fix use-after-free on mid_q_entryChristopher Oo1-0/+2
2014-12-07cifs: convert printk(LEVEL...) to pr_<level>Andy Shevchenko1-2/+2
2014-08-02CIFS: Use multicredits for SMB 2.1/3 writesPavel Shilovsky1-7/+18
2014-02-23cifs: sanity check length of data to send before sendingJeff Layton1-0/+29
2013-11-02cifs: Send a logoff request before removing a smb sessionShirish Pargaonkar1-2/+9
2013-11-02cifs: Make big endian multiplex ID sequences monotonic on the wireTim Gardner1-1/+1
2013-10-06cifs: Avoid umount hangs with smb2 when server is unresponsiveShirish Pargaonkar1-2/+7
2013-07-03Merge tag 'pm+acpi-3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2013-06-24cifs: track the enablement of signing in the TCP_Server_InfoJeff Layton1-2/+2
2013-05-12freezer: add unsafe versions of freezable helpers for CIFSColin Cross1-1/+1
2013-05-04cifs: store the real expected sequence number in the midJeff Layton1-1/+1
2013-05-04cifs: on send failure, readjust server sequence number downwardJeff Layton1-0/+13
2013-05-04cifs: remove ENOSPC handling in smb_sendvJeff Layton1-7/+1
2013-05-04[CIFS] cifs: Rename cERROR and cFYI to cifs_dbgJoe Perches1-30/+31
2012-12-30cifs: move check for NULL socket into smb_send_rqstJeff Layton1-3/+3
2012-10-07[CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPCSteve French1-0/+6
2012-09-24cifs: change cifs_call_async to use smb_rqst structsJeff Layton1-28/+28
2012-09-24cifs: teach signing routines how to deal with arrays of pages in a smb_rqstJeff Layton1-1/+1
2012-09-24cifs: teach smb_send_rqst how to handle arrays of pagesJeff Layton1-2/+54
2012-09-24cifs: cork the socket before a send and uncork it afterwardJeff Layton1-0/+12
2012-09-24cifs: convert send code to use smb_rqst structsJeff Layton1-45/+90
2012-09-24cifs: change signing routines to deal with smb_rqst structsJeff Layton1-1/+3
2012-09-24CIFS: Enable signing in SMB2Pavel Shilovsky1-12/+12
2012-08-19cifs: print error code if smb signature verification failsSteve French1-3/+6
2012-07-24CIFS: Setup async request in ops structPavel Shilovsky1-2/+2
2012-07-24CIFS: Make transport routines work with SMB2Pavel Shilovsky1-7/+6
2012-07-24CIFS: Extend credit mechanism to process request typePavel Shilovsky1-31/+39
2012-07-23cifs: rename cifs_sign_smb2 to cifs_sign_smbvJeff Layton1-2/+2
2012-07-23cifs: remove bogus reset of smb_buf_length in smb_send routinesJeff Layton1-4/+0
2012-07-16Initialise mid_q_entry before putting it on the pending queueSachin Prabhu1-12/+14
2012-06-01CIFS: Move get_next_mid to ops structPavel Shilovsky1-1/+1
2012-05-23CIFS: Move add/set_credits and get_credits_field to ops structurePavel Shilovsky1-11/+12
2012-05-23CIFS: Move protocol specific part from SendReceive2 to ops structPavel Shilovsky1-3/+4
2012-05-16cifs: convert send_nt_cancel into a version specific opJeff Layton1-38/+8
2012-03-23CIFS: Change mid_q_entry structure fieldsPavel Shilovsky1-26/+26
2012-03-23CIFS: Separate protocol-specific code from demultiplex codePavel Shilovsky1-2/+2
2012-03-23CIFS: Separate protocol-specific code from transport routinesPavel Shilovsky1-72/+99
2012-03-21CIFS: Prepare credits code for a slot reservationPavel Shilovsky1-8/+14
2012-03-21CIFS: Make wait_for_free_request killablePavel Shilovsky1-1/+6
2012-03-21CIFS: Introduce credit-based flow controlPavel Shilovsky1-24/+20
2012-03-21CIFS: Simplify inFlight logicPavel Shilovsky1-22/+23
2012-03-20CIFS: Respect negotiated MaxMpxCountPavel Shilovsky1-2/+2
2011-10-19cifs, freezer: add wait_event_freezekillable and have cifs use itJeff Layton1-1/+2
2011-10-19cifs: add a callback function to receive the rest of the frameJeff Layton1-2/+3
2011-10-12cifs: consolidate signature generating codeJeff Layton1-3/+8
2011-08-11[CIFS] Cleanup use of CONFIG_CIFS_STATS2 ifdef to make transport routines mor...Steve French1-34/+17
2011-08-03CIFS: Fix missing a decrement of inFlight valuePavel Shilovsky1-0/+2
2011-05-27[CIFS] Rename three structures to avoid camel caseSteve French1-10/+10
2011-05-24cifs: don't call mid_q_entry->callback under the Global_MidLock (try #5)Jeff Layton1-15/+8
2011-05-23cifs: add ignore_pend flag to cifs_call_asyncJeff Layton1-2/+3
2011-05-23cifs: make cifs_send_async take a kvec arrayJeff Layton1-6/+7
2011-05-23cifs: consolidate SendReceive response checksJeff Layton1-116/+41
2011-05-19cifs: keep BCC in little-endian formatJeff Layton1-18/+1
2011-05-19consistently use smb_buf_length as be32 for cifs (try 3)Steve French1-26/+21
2011-02-11cifs: don't always drop malformed replies on the floor (try #3)Jeff Layton1-0/+3
2011-02-04cifs: enable signing flag in SMB header when server has it onJeff Layton1-0/+4
2011-01-31cifs: don't pop a printk when sending on a socket is interruptedJeff Layton1-2/+2
2011-01-31cifs: send an NT_CANCEL request when a process is signalledJeff Layton1-3/+12
2011-01-31cifs: handle cancelled requests betterJeff Layton1-7/+36
2011-01-20cifs: use get/put_unaligned functions to access ByteCountJeff Layton1-5/+4
2011-01-20cifs: mangle existing header for SMB_COM_NT_CANCELJeff Layton1-25/+38