diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-02-28 17:08:41 +0300 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-03-02 07:26:11 +0300 |
commit | 51146625f34b348c15d55c378b5ae5c2fb963fc8 (patch) | |
tree | 65f0cb7f1a721ddc8539da0f212618ece9180425 /fs/cifs/smb2file.c | |
parent | 268a635d414df45a4a8da699d431da8f8ffcf014 (diff) | |
download | linux-51146625f34b348c15d55c378b5ae5c2fb963fc8.tar.xz |
CIFS: add use_ipc flag to SMB2_ioctl()
when set, use the session IPC tree id instead of the tid in the provided
tcon.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2file.c')
-rw-r--r-- | fs/cifs/smb2file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2file.c b/fs/cifs/smb2file.c index b2aff0c6f22c..b4b1f0305f29 100644 --- a/fs/cifs/smb2file.c +++ b/fs/cifs/smb2file.c @@ -73,7 +73,8 @@ smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, nr_ioctl_req.Timeout = 0; /* use server default (120 seconds) */ nr_ioctl_req.Reserved = 0; rc = SMB2_ioctl(xid, oparms->tcon, fid->persistent_fid, - fid->volatile_fid, FSCTL_LMR_REQUEST_RESILIENCY, true, + fid->volatile_fid, FSCTL_LMR_REQUEST_RESILIENCY, + true /* is_fsctl */, false /* use_ipc */, (char *)&nr_ioctl_req, sizeof(nr_ioctl_req), NULL, NULL /* no return info */); if (rc == -EOPNOTSUPP) { |