Lines Matching refs:tcon

73 int smb3_encryption_required(const struct cifs_tcon *tcon)
75 if (!tcon || !tcon->ses)
77 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
78 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA))
80 if (tcon->seal &&
81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))
88 const struct cifs_tcon *tcon,
126 if (!tcon)
135 shdr->Id.SyncId.TreeId = cpu_to_le32(tcon->tid);
137 if (tcon->ses)
138 shdr->SessionId = cpu_to_le64(tcon->ses->Suid);
150 /* if (tcon->share_flags & SHI1005_FLAGS_DFS)
153 if (server && server->sign && !smb3_encryption_required(tcon))
210 smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
219 * SMB2s NegProt, SessSetup, Logoff do not have tcon yet so
223 if (tcon == NULL)
233 spin_lock(&tcon->tc_lock);
234 if (tcon->status == TID_EXITING) {
239 spin_unlock(&tcon->tc_lock);
245 spin_unlock(&tcon->tc_lock);
247 ses = tcon->ses;
286 rc = cifs_wait_for_server_reconnect(server, tcon->retry);
291 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) {
296 cifs_dbg(FYI, "sess reconnect mask: 0x%lx, tcon reconnect: %d",
297 tcon->ses->chans_need_reconnect,
298 tcon->need_reconnect);
323 if (tcon->retry)
344 if (tcon->need_reconnect)
370 if ((rc == -EACCES) && !tcon->retry) {
384 if (!tcon->need_reconnect) {
388 cifs_mark_open_files_invalid(tcon);
389 if (tcon->use_persistent)
390 tcon->need_reopen_files = true;
392 rc = cifs_tree_connect(0, tcon, nls_codepage);
394 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc);
396 /* If sess reconnected but tcon didn't, something strange ... */
398 cifs_dbg(VFS, "reconnect tcon failed rc = %d\n", rc);
419 rc = SMB3_request_interfaces(xid, tcon, false);
442 queue_delayed_work(cifsiod_wq, &tcon->query_interfaces,
486 fill_small_buf(__le16 smb2_command, struct cifs_tcon *tcon,
501 smb2_hdr_assemble(&spdu->hdr, smb2_command, tcon, server);
512 static int __smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
531 fill_small_buf(smb2_command, tcon, server,
535 if (tcon != NULL) {
537 cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_sent[com_code]);
538 cifs_stats_inc(&tcon->num_smbs_sent);
544 static int smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
550 rc = smb2_reconnect(smb2_command, tcon, server, false);
554 return __smb2_plain_req_init(smb2_command, tcon, server, request_buf,
558 static int smb2_ioctl_req_init(u32 opcode, struct cifs_tcon *tcon,
564 return __smb2_plain_req_init(SMB2_IOCTL, tcon, server,
567 return smb2_plain_req_init(SMB2_IOCTL, tcon, server,
1111 * No tcon so can't do
1112 * cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_fail[SMB2...]);
1246 int smb3_validate_negotiate(const unsigned int xid, struct cifs_tcon *tcon)
1253 struct TCP_Server_Info *server = tcon->ses->server;
1268 if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
1271 if (tcon->ses->user_name == NULL) {
1276 if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
1285 if (tcon->ses->chan_max > 1)
1291 if (tcon->ses->sign)
1329 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID,
1951 /* since no tcon, smb2_init can not do this, so do here */
1972 * No tcon so can't do
1973 * cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_fail[SMB2...]);
1980 static inline void cifs_stats_fail_inc(struct cifs_tcon *tcon, uint16_t code)
1982 cifs_stats_inc(&tcon->stats.smb2_stats.smb2_com_failed[code]);
1988 static inline void init_copy_chunk_defaults(struct cifs_tcon *tcon)
1990 tcon->max_chunks = 256;
1991 tcon->max_bytes_chunk = 1048576;
1992 tcon->max_bytes_copy = 16777216;
1997 struct cifs_tcon *tcon, const struct nls_table *cp)
2032 tcon->tid = 0;
2033 atomic_set(&tcon->num_remote_opens, 0);
2034 rc = smb2_plain_req_init(SMB2_TREE_CONNECT, tcon, server,
2041 if (smb3_encryption_required(tcon))
2055 * 3.11 tcon req must be signed if not encrypted. See MS-SMB2 3.2.4.1.1
2060 !smb3_encryption_required(tcon) &&
2082 trace_smb3_tcon(xid, tcon->tid, ses->Suid, tree, rc);
2084 cifs_stats_fail_inc(tcon, SMB2_TREE_CONNECT_HE);
2085 tcon->need_reconnect = true;
2094 tcon->pipe = true;
2098 tcon->print = true;
2107 tcon->share_flags = le32_to_cpu(rsp->ShareFlags);
2108 tcon->capabilities = rsp->Capabilities; /* we keep caps little endian */
2109 tcon->maximal_access = le32_to_cpu(rsp->MaximalAccess);
2110 tcon->tid = le32_to_cpu(rsp->hdr.Id.SyncId.TreeId);
2111 strscpy(tcon->tree_name, tree, sizeof(tcon->tree_name));
2114 ((tcon->share_flags & SHI1005_FLAGS_DFS) == 0))
2117 if (tcon->seal &&
2121 init_copy_chunk_defaults(tcon);
2123 rc = server->ops->validate_negotiate(xid, tcon);
2125 if (tcon->share_flags & SMB2_SHAREFLAG_ISOLATED_TRANSPORT)
2140 SMB2_tdis(const unsigned int xid, struct cifs_tcon *tcon)
2145 struct cifs_ses *ses = tcon->ses;
2157 trace_smb3_tdis_enter(xid, tcon->tid, ses->Suid, tcon->tree_name);
2159 if ((tcon->need_reconnect) ||
2160 (CIFS_ALL_CHANS_NEED_RECONNECT(tcon->ses))) {
2166 invalidate_all_cached_dirs(tcon);
2168 rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, ses->server,
2174 if (smb3_encryption_required(tcon))
2190 cifs_stats_fail_inc(tcon, SMB2_TREE_DISCONNECT_HE);
2191 trace_smb3_tdis_err(xid, tcon->tid, ses->Suid, rc);
2193 trace_smb3_tdis_done(xid, tcon->tid, ses->Suid);
2412 buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout);
2767 umode_t mode, struct cifs_tcon *tcon,
2774 struct cifs_ses *ses = tcon->ses;
2803 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server,
2809 if (smb3_encryption_required(tcon))
2834 if (tcon->share_flags & SHI1005_FLAGS_DFS) {
2840 tcon->tree_name, utf16_path);
2873 if (tcon->posix_extensions) {
2890 trace_smb3_posix_mkdir_enter(xid, tcon->tid, ses->Suid, full_path, CREATE_NOT_FILE,
2896 cifs_stats_fail_inc(tcon, SMB2_CREATE_HE);
2897 trace_smb3_posix_mkdir_err(xid, tcon->tid, ses->Suid,
2915 trace_smb3_posix_mkdir_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid,
2918 SMB2_close(xid, tcon, rsp->PersistentFileId, rsp->VolatileFileId);
2933 SMB2_open_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server,
2947 rc = smb2_plain_req_init(SMB2_CREATE, tcon, server,
2979 if (tcon->share_flags & SHI1005_FLAGS_DFS) {
2985 tcon->tree_name, path);
3008 if ((!server->oplocks) || (tcon->no_lease))
3026 tcon->use_persistent);
3031 if (tcon->posix_extensions) {
3037 if (tcon->snapshot_time) {
3039 rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time);
3122 struct cifs_tcon *tcon = oparms->tcon;
3123 struct cifs_ses *ses = tcon->ses;
3135 if (smb3_encryption_required(tcon))
3143 rc = SMB2_open_init(tcon, server,
3148 trace_smb3_open_enter(xid, tcon->tid, tcon->ses->Suid, oparms->path,
3157 cifs_stats_fail_inc(tcon, SMB2_CREATE_HE);
3164 trace_smb3_open_err(xid, tcon->tid, ses->Suid,
3168 tcon->tree_name);
3169 tcon->need_reconnect = true;
3175 trace_smb3_open_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid,
3178 atomic_inc(&tcon->num_remote_opens);
3208 SMB2_ioctl_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server,
3220 rc = smb2_ioctl_req_init(opcode, tcon, server,
3314 SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
3338 if (!tcon)
3341 ses = tcon->ses;
3349 if (smb3_encryption_required(tcon))
3357 rc = SMB2_ioctl_init(tcon, server,
3369 trace_smb3_fsctl_err(xid, persistent_fid, tcon->tid,
3373 cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
3378 cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
3383 cifs_stats_fail_inc(tcon, SMB2_IOCTL_HE);
3440 SMB2_set_compression(const unsigned int xid, struct cifs_tcon *tcon,
3450 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid,
3462 SMB2_close_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server,
3471 rc = smb2_plain_req_init(SMB2_CLOSE, tcon, server,
3496 __SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
3502 struct cifs_ses *ses = tcon->ses;
3516 if (smb3_encryption_required(tcon))
3528 trace_smb3_close_enter(xid, persistent_fid, tcon->tid, ses->Suid);
3529 rc = SMB2_close_init(tcon, server,
3540 cifs_stats_fail_inc(tcon, SMB2_CLOSE_HE);
3541 trace_smb3_close_err(xid, persistent_fid, tcon->tid, ses->Suid,
3545 trace_smb3_close_done(xid, persistent_fid, tcon->tid,
3553 atomic_dec(&tcon->num_remote_opens);
3562 tmp_rc = smb2_handle_cancelled_close(tcon, persistent_fid,
3572 SMB2_close(const unsigned int xid, struct cifs_tcon *tcon,
3575 return __SMB2_close(xid, tcon, persistent_fid, volatile_fid, NULL);
3634 SMB2_query_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server,
3650 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server,
3683 query_info(const unsigned int xid, struct cifs_tcon *tcon,
3694 struct cifs_ses *ses = tcon->ses;
3707 if (smb3_encryption_required(tcon))
3715 rc = SMB2_query_info_init(tcon, server,
3722 trace_smb3_query_info_enter(xid, persistent_fid, tcon->tid,
3730 cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
3731 trace_smb3_query_info_err(xid, persistent_fid, tcon->tid,
3736 trace_smb3_query_info_done(xid, persistent_fid, tcon->tid,
3770 int SMB2_query_info(const unsigned int xid, struct cifs_tcon *tcon,
3773 return query_info(xid, tcon, persistent_fid, volatile_fid,
3783 SMB311_posix_query_info(const unsigned int xid, struct cifs_tcon *tcon,
3790 return query_info(xid, tcon, persistent_fid, volatile_fid,
3798 SMB2_query_acl(const unsigned int xid, struct cifs_tcon *tcon,
3806 return query_info(xid, tcon, persistent_fid, volatile_fid,
3812 SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
3815 return query_info(xid, tcon, persistent_fid, volatile_fid,
3829 struct cifs_tcon *tcon, struct TCP_Server_Info *server,
3838 rc = smb2_plain_req_init(SMB2_CHANGE_NOTIFY, tcon, server,
3861 SMB2_change_notify(const unsigned int xid, struct cifs_tcon *tcon,
3866 struct cifs_ses *ses = tcon->ses;
3880 if (smb3_encryption_required(tcon))
3891 rc = SMB2_notify_init(xid, &rqst, tcon, server,
3897 trace_smb3_notify_enter(xid, persistent_fid, tcon->tid, ses->Suid,
3903 cifs_stats_fail_inc(tcon, SMB2_CHANGE_NOTIFY_HE);
3904 trace_smb3_notify_err(xid, persistent_fid, tcon->tid, ses->Suid,
3907 trace_smb3_notify_done(xid, persistent_fid, tcon->tid,
3968 struct cifs_tcon *tcon, *tcon2;
3987 /* Prevent simultaneous reconnects that can corrupt tcon->rlist list */
4012 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
4013 if (tcon->need_reconnect || tcon->need_reopen_files) {
4014 tcon->tc_count++;
4015 list_add_tail(&tcon->rlist, &tmp_list);
4030 * binding session, but tcon is healthy (some other channel
4043 list_for_each_entry_safe(tcon, tcon2, &tmp_list, rlist) {
4044 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon, server, true);
4046 cifs_reopen_persistent_handles(tcon);
4049 list_del_init(&tcon->rlist);
4050 if (tcon->ipc)
4051 cifs_put_smb_ses(tcon->ses);
4053 cifs_put_tcon(tcon);
4059 /* allocate a dummy tcon struct used for reconnect */
4060 tcon = tcon_info_alloc(false);
4061 if (!tcon) {
4070 tcon->status = TID_GOOD;
4071 tcon->retry = false;
4072 tcon->need_reconnect = false;
4076 tcon->ses = ses;
4077 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon, server, true);
4083 tconInfoFree(tcon);
4145 struct cifs_tcon *tcon, struct TCP_Server_Info *server,
4153 rc = smb2_plain_req_init(SMB2_FLUSH, tcon, server,
4168 SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
4171 struct cifs_ses *ses = tcon->ses;
4184 if (smb3_encryption_required(tcon))
4192 rc = SMB2_flush_init(xid, &rqst, tcon, server,
4197 trace_smb3_flush_enter(xid, persistent_fid, tcon->tid, ses->Suid);
4202 cifs_stats_fail_inc(tcon, SMB2_FLUSH_HE);
4203 trace_smb3_flush_err(xid, persistent_fid, tcon->tid, ses->Suid,
4206 trace_smb3_flush_done(xid, persistent_fid, tcon->tid,
4219 struct cifs_tcon *tcon = io_parms->tcon;
4222 if (!server || !tcon)
4234 if (smb3_encryption_required(tcon))
4259 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server,
4281 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
4344 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
4381 cifs_stats_bytes_read(tcon, rdata->got_bytes);
4391 cifs_stats_bytes_read(tcon, rdata->got_bytes);
4412 cifs_stats_fail_inc(tcon, SMB2_READ_HE);
4415 tcon->tid, tcon->ses->Suid, rdata->offset,
4420 tcon->tid, tcon->ses->Suid,
4439 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink);
4447 rdata->server = cifs_pick_channel(tcon->ses);
4449 io_parms.tcon = tlink_tcon(rdata->cfile->tlink);
4462 if (smb3_encryption_required(io_parms.tcon))
4495 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE);
4497 io_parms.tcon->tid,
4498 io_parms.tcon->ses->Suid,
4519 struct cifs_ses *ses = io_parms->tcon->ses;
4522 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4529 if (smb3_encryption_required(io_parms->tcon))
4545 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE);
4549 io_parms->tcon->tid, ses->Suid,
4553 trace_smb3_read_done(xid, req->PersistentFileId, io_parms->tcon->tid,
4561 io_parms->tcon->tid, ses->Suid,
4596 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
4655 cifs_stats_fail_inc(tcon, SMB2_WRITE_HE);
4658 tcon->tid, tcon->ses->Suid, wdata->offset,
4662 tcon->tree_name);
4666 tcon->tid, tcon->ses->Suid,
4682 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
4692 server = wdata->server = cifs_pick_channel(tcon->ses);
4699 .tcon = tcon,
4709 rc = smb2_plain_req_init(SMB2_WRITE, tcon, server,
4714 if (smb3_encryption_required(tcon))
4732 io_parms->tcon->tid,
4733 io_parms->tcon->ses->Suid,
4816 io_parms->tcon->tid,
4817 io_parms->tcon->ses->Suid,
4822 cifs_stats_fail_inc(tcon, SMB2_WRITE_HE);
4856 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4861 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server,
4866 if (smb3_encryption_required(io_parms->tcon))
4883 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
4894 rc = cifs_send_recv(xid, io_parms->tcon->ses, server,
4902 io_parms->tcon->tid,
4903 io_parms->tcon->ses->Suid,
4905 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE);
4911 io_parms->tcon->tid,
4912 io_parms->tcon->ses->Suid,
5069 struct cifs_tcon *tcon,
5085 rc = smb2_plain_req_init(SMB2_QUERY_DIRECTORY, tcon, server,
5135 trace_smb3_query_dir_enter(xid, persistent_fid, tcon->tid,
5136 tcon->ses->Suid, index, output_size);
5149 smb2_parse_query_directory(struct cifs_tcon *tcon,
5224 SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
5234 struct cifs_ses *ses = tcon->ses;
5241 if (smb3_encryption_required(tcon))
5249 rc = SMB2_query_directory_init(xid, tcon, server,
5264 tcon->tid, tcon->ses->Suid, index, 0);
5268 trace_smb3_query_dir_err(xid, persistent_fid, tcon->tid,
5269 tcon->ses->Suid, index, 0, rc);
5270 cifs_stats_fail_inc(tcon, SMB2_QUERY_DIRECTORY_HE);
5275 rc = smb2_parse_query_directory(tcon, &rsp_iov, resp_buftype,
5278 trace_smb3_query_dir_err(xid, persistent_fid, tcon->tid,
5279 tcon->ses->Suid, index, 0, rc);
5284 trace_smb3_query_dir_done(xid, persistent_fid, tcon->tid,
5285 tcon->ses->Suid, index, srch_inf->entries_in_buffer);
5294 SMB2_set_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server,
5305 rc = smb2_plain_req_init(SMB2_SET_INFO, tcon, server,
5344 send_set_info(const unsigned int xid, struct cifs_tcon *tcon,
5355 struct cifs_ses *ses = tcon->ses;
5365 if (smb3_encryption_required(tcon))
5376 rc = SMB2_set_info_init(tcon, server,
5393 cifs_stats_fail_inc(tcon, SMB2_SET_INFO_HE);
5394 trace_smb3_set_info_err(xid, persistent_fid, tcon->tid,
5404 SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
5416 trace_smb3_set_eof(xid, persistent_fid, tcon->tid, tcon->ses->Suid, le64_to_cpu(*eof));
5418 return send_set_info(xid, tcon, persistent_fid, volatile_fid,
5424 SMB2_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
5428 return send_set_info(xid, tcon, persistent_fid, volatile_fid,
5434 SMB2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
5438 return send_set_info(xid, tcon, persistent_fid, volatile_fid,
5444 SMB2_oplock_break(const unsigned int xid, struct cifs_tcon *tcon,
5451 struct cifs_ses *ses = tcon->ses;
5460 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server,
5465 if (smb3_encryption_required(tcon))
5487 cifs_stats_fail_inc(tcon, SMB2_OPLOCK_BREAK_HE);
5526 build_qfs_info_req(struct kvec *iov, struct cifs_tcon *tcon,
5537 if ((tcon->ses == NULL) || server == NULL)
5540 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, server,
5566 SMB311_posix_qfs_info(const unsigned int xid, struct cifs_tcon *tcon,
5575 struct cifs_ses *ses = tcon->ses;
5580 rc = build_qfs_info_req(&iov, tcon, server,
5587 if (smb3_encryption_required(tcon))
5598 cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
5617 SMB2_QFS_info(const unsigned int xid, struct cifs_tcon *tcon,
5626 struct cifs_ses *ses = tcon->ses;
5631 rc = build_qfs_info_req(&iov, tcon, server,
5638 if (smb3_encryption_required(tcon))
5649 cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
5668 SMB2_QFS_attr(const unsigned int xid, struct cifs_tcon *tcon,
5677 struct cifs_ses *ses = tcon->ses;
5699 rc = build_qfs_info_req(&iov, tcon, server,
5705 if (smb3_encryption_required(tcon))
5716 cifs_stats_fail_inc(tcon, SMB2_QUERY_INFO_HE);
5728 memcpy(&tcon->fsAttrInfo, offset
5732 memcpy(&tcon->fsDevInfo, offset
5737 tcon->ss_flags = le32_to_cpu(ss_info->Flags);
5738 tcon->perf_sector_size =
5743 tcon->vol_serial_number = vol_info->VolumeSerialNumber;
5744 tcon->vol_create_time = vol_info->VolumeCreationTime;
5753 smb2_lockv(const unsigned int xid, struct cifs_tcon *tcon,
5766 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses);
5770 rc = smb2_plain_req_init(SMB2_LOCK, tcon, server,
5775 if (smb3_encryption_required(tcon))
5791 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);
5797 rc = cifs_send_recv(xid, tcon->ses, server,
5803 cifs_stats_fail_inc(tcon, SMB2_LOCK_HE);
5804 trace_smb3_lock_err(xid, persist_fid, tcon->tid,
5805 tcon->ses->Suid, rc);
5812 SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon,
5825 return smb2_lockv(xid, tcon, persist_fid, volatile_fid, pid, 1, &lock);
5829 SMB2_lease_break(const unsigned int xid, struct cifs_tcon *tcon,
5835 struct cifs_ses *ses = tcon->ses;
5843 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses);
5846 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, server,
5851 if (smb3_encryption_required(tcon))
5877 cifs_stats_fail_inc(tcon, SMB2_OPLOCK_BREAK_HE);
5878 trace_smb3_lease_err(le32_to_cpu(lease_state), tcon->tid,
5882 trace_smb3_lease_done(le32_to_cpu(lease_state), tcon->tid,