Skip to content

Commit 3322960

Browse files
Paulo Alcantarasmfrench
authored andcommitted
smb: client: extend smb2_compound_op() to accept more commands
Make smb2_compound_op() accept up to MAX_COMPOUND(5) commands to be sent over a single compounded request. This will allow next commits to read and write reparse files through a single roundtrip to the server. Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 0108ce0 commit 3322960

2 files changed

Lines changed: 402 additions & 384 deletions

File tree

fs/smb/client/cifsglob.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,8 +2238,8 @@ static inline void cifs_sg_set_buf(struct sg_table *sgtable,
22382238

22392239
struct smb2_compound_vars {
22402240
struct cifs_open_parms oparms;
2241-
struct kvec rsp_iov[3];
2242-
struct smb_rqst rqst[3];
2241+
struct kvec rsp_iov[MAX_COMPOUND];
2242+
struct smb_rqst rqst[MAX_COMPOUND];
22432243
struct kvec open_iov[SMB2_CREATE_IOV_SIZE];
22442244
struct kvec qi_iov;
22452245
struct kvec io_iov[SMB2_IOCTL_IOV_SIZE];

0 commit comments

Comments
 (0)