mbox series

[v2,0/2] Make IPC a regular tcon and fix SMB2 domain-based DFS

Message ID 20180119171258.14244-1-aaptel@suse.com
Headers show
Series Make IPC a regular tcon and fix SMB2 domain-based DFS | expand

Message

Aurélien Aptel Jan. 19, 2018, 5:12 p.m. UTC
changes since v1:

* squashed definition change of SERVER_NAME_LENGTH in first patch
* ipc tcon no longer added the the session tcon list
* ipc tcon no longer protected by spinlock
* decrement tcon refcount only if it was incremented earlier (ie not
  an ipc tcon) in smb2_get_dfs_refer()

Aurelien Aptel (2):
  CIFS: make IPC a regular tcon
  CIFS: use tcon_ipc instead of use_ipc parameter of SMB2_ioctl

 fs/cifs/cifsglob.h  |  14 ++---
 fs/cifs/cifssmb.c   |   5 +-
 fs/cifs/connect.c   | 148 +++++++++++++++++++++++++++++++++++++++-------------
 fs/cifs/inode.c     |   2 +-
 fs/cifs/smb2file.c  |   2 +-
 fs/cifs/smb2ops.c   |  53 ++++++++-----------
 fs/cifs/smb2pdu.c   |  36 ++-----------
 fs/cifs/smb2proto.h |   3 +-
 8 files changed, 151 insertions(+), 112 deletions(-)