[PATCH v2 0/3] smb/server: improve async interim response handling for compound requests

ChenXiaoSong <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
From: ChenXiaoSong <[email protected]>

v1->v2: send compound prefix before async pending response,
        then send STATUS_PENDING as a standalone response.

v1: https://lore.kernel.org/linux-cifs/[email protected]/

I am currently implementing the ksmbd change notify feature, and I have
encountered the following issue.

Before this patchset, no CREATE response:

  Windows client compound request:
    CREATE dir; CHANGE_NOTIFY, fid = compound fid

  Server response:
    CHANGE_NOTIFY STATUS_PENDING, AsyncId = N

After this patchset:

  Server response:
    CREATE dir SUCCESS, fid = X
    CHANGE_NOTIFY STATUS_PENDING, AsyncId = N

ChenXiaoSong (3):
  smb/server: send compound prefix before async pending response
  smb/server: introduce struct ksmbd_transport_write
  smb/server: use MSG_EOR for async interim response

 fs/smb/server/connection.c     | 31 +++++++++++++++++-----
 fs/smb/server/connection.h     | 15 ++++++++---
 fs/smb/server/smb2pdu.c        | 47 +++++++++++++++++++++++++++++++++-
 fs/smb/server/transport_rdma.c |  9 ++++---
 fs/smb/server/transport_tcp.c  | 13 +++++-----
 5 files changed, 95 insertions(+), 20 deletions(-)

-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.