Lines Matching refs:midEntry
79 struct mid_q_entry *midEntry = in __release_mid() local
82 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid()
83 __u16 smb_cmd = le16_to_cpu(midEntry->command); in __release_mid()
87 struct TCP_Server_Info *server = midEntry->server; in __release_mid()
89 if (midEntry->resp_buf && (midEntry->mid_flags & MID_WAIT_CANCELLED) && in __release_mid()
90 midEntry->mid_state == MID_RESPONSE_RECEIVED && in __release_mid()
92 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid()
94 midEntry->mid_state = MID_FREE; in __release_mid()
96 if (midEntry->large_buf) in __release_mid()
97 cifs_buf_release(midEntry->resp_buf); in __release_mid()
99 cifs_small_buf_release(midEntry->resp_buf); in __release_mid()
102 if (now < midEntry->when_alloc) in __release_mid()
104 roundtrip_time = now - midEntry->when_alloc; in __release_mid()
130 time_after(now, midEntry->when_alloc + (slow_rsp_threshold * HZ)) && in __release_mid()
131 (midEntry->command != command)) { in __release_mid()
139 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in __release_mid()
140 midEntry->when_sent, midEntry->when_received); in __release_mid()
143 midEntry->command, midEntry->mid); in __release_mid()
145 now - midEntry->when_alloc, in __release_mid()
146 now - midEntry->when_sent, in __release_mid()
147 now - midEntry->when_received); in __release_mid()
151 put_task_struct(midEntry->creator); in __release_mid()
153 mempool_free(midEntry, cifs_mid_poolp); in __release_mid()