Lines Matching refs:midEntry
94 void cifs_mid_q_entry_release(struct mid_q_entry *midEntry) in cifs_mid_q_entry_release() argument
97 kref_put(&midEntry->refcount, _cifs_mid_q_entry_release); in cifs_mid_q_entry_release()
102 DeleteMidQEntry(struct mid_q_entry *midEntry) in DeleteMidQEntry() argument
105 __le16 command = midEntry->server->vals->lock_cmd; in DeleteMidQEntry()
108 midEntry->mid_state = MID_FREE; in DeleteMidQEntry()
110 if (midEntry->large_buf) in DeleteMidQEntry()
111 cifs_buf_release(midEntry->resp_buf); in DeleteMidQEntry()
113 cifs_small_buf_release(midEntry->resp_buf); in DeleteMidQEntry()
118 if (time_after(now, midEntry->when_alloc + HZ) && in DeleteMidQEntry()
119 (midEntry->command != command)) { in DeleteMidQEntry()
121 if ((le16_to_cpu(midEntry->command) < NUMBER_OF_SMB2_COMMANDS) && in DeleteMidQEntry()
122 (le16_to_cpu(midEntry->command) >= 0)) in DeleteMidQEntry()
123 cifs_stats_inc(&midEntry->server->smb2slowcmd[le16_to_cpu(midEntry->command)]); in DeleteMidQEntry()
125 trace_smb3_slow_rsp(le16_to_cpu(midEntry->command), in DeleteMidQEntry()
126 midEntry->mid, midEntry->pid, in DeleteMidQEntry()
127 midEntry->when_sent, midEntry->when_received); in DeleteMidQEntry()
130 midEntry->command, midEntry->mid); in DeleteMidQEntry()
132 now - midEntry->when_alloc, in DeleteMidQEntry()
133 now - midEntry->when_sent, in DeleteMidQEntry()
134 now - midEntry->when_received); in DeleteMidQEntry()
138 cifs_mid_q_entry_release(midEntry); in DeleteMidQEntry()