cifs: always add credits back for unsolicited PDUs
not just if CONFIG_CIFS_DEBUG2 is enabled. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Родитель
0aa3a24be0
Коммит
3e2725796c
|
@ -1223,11 +1223,11 @@ next_pdu:
|
||||||
atomic_read(&midCount));
|
atomic_read(&midCount));
|
||||||
cifs_dump_mem("Received Data is: ", bufs[i],
|
cifs_dump_mem("Received Data is: ", bufs[i],
|
||||||
HEADER_SIZE(server));
|
HEADER_SIZE(server));
|
||||||
|
smb2_add_credits_from_hdr(bufs[i], server);
|
||||||
#ifdef CONFIG_CIFS_DEBUG2
|
#ifdef CONFIG_CIFS_DEBUG2
|
||||||
if (server->ops->dump_detail)
|
if (server->ops->dump_detail)
|
||||||
server->ops->dump_detail(bufs[i],
|
server->ops->dump_detail(bufs[i],
|
||||||
server);
|
server);
|
||||||
smb2_add_credits_from_hdr(bufs[i], server);
|
|
||||||
cifs_dump_mids(server);
|
cifs_dump_mids(server);
|
||||||
#endif /* CIFS_DEBUG2 */
|
#endif /* CIFS_DEBUG2 */
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче