• Home
  • Raw
  • Download

Lines Matching refs:midEntry

91 	struct mid_q_entry *midEntry =  in _cifs_mid_q_entry_release()  local
94 __le16 command = midEntry->server->vals->lock_cmd; in _cifs_mid_q_entry_release()
95 __u16 smb_cmd = le16_to_cpu(midEntry->command); in _cifs_mid_q_entry_release()
99 struct TCP_Server_Info *server = midEntry->server; in _cifs_mid_q_entry_release()
101 if (midEntry->resp_buf && (midEntry->mid_flags & MID_WAIT_CANCELLED) && in _cifs_mid_q_entry_release()
102 midEntry->mid_state == MID_RESPONSE_RECEIVED && in _cifs_mid_q_entry_release()
104 server->ops->handle_cancelled_mid(midEntry, server); in _cifs_mid_q_entry_release()
106 midEntry->mid_state = MID_FREE; in _cifs_mid_q_entry_release()
108 if (midEntry->large_buf) in _cifs_mid_q_entry_release()
109 cifs_buf_release(midEntry->resp_buf); in _cifs_mid_q_entry_release()
111 cifs_small_buf_release(midEntry->resp_buf); in _cifs_mid_q_entry_release()
114 if (now < midEntry->when_alloc) in _cifs_mid_q_entry_release()
116 roundtrip_time = now - midEntry->when_alloc; in _cifs_mid_q_entry_release()
142 time_after(now, midEntry->when_alloc + (slow_rsp_threshold * HZ)) && in _cifs_mid_q_entry_release()
143 (midEntry->command != command)) { in _cifs_mid_q_entry_release()
151 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in _cifs_mid_q_entry_release()
152 midEntry->when_sent, midEntry->when_received); in _cifs_mid_q_entry_release()
155 midEntry->command, midEntry->mid); in _cifs_mid_q_entry_release()
157 now - midEntry->when_alloc, in _cifs_mid_q_entry_release()
158 now - midEntry->when_sent, in _cifs_mid_q_entry_release()
159 now - midEntry->when_received); in _cifs_mid_q_entry_release()
163 put_task_struct(midEntry->creator); in _cifs_mid_q_entry_release()
165 mempool_free(midEntry, cifs_mid_poolp); in _cifs_mid_q_entry_release()
168 void cifs_mid_q_entry_release(struct mid_q_entry *midEntry) in cifs_mid_q_entry_release() argument
171 kref_put(&midEntry->refcount, _cifs_mid_q_entry_release); in cifs_mid_q_entry_release()
175 void DeleteMidQEntry(struct mid_q_entry *midEntry) in DeleteMidQEntry() argument
177 cifs_mid_q_entry_release(midEntry); in DeleteMidQEntry()