SMB3 credits do match expected server values for cifs.ko

Steve French smfrench at gmail.com
Fri Sep 23 06:59:00 UTC 2016


We had been noticing that the SMB3 credits that the cifs.ko client was
reporting on mounts to Samba (and Windows) were two less than expected
(in the new debug line displayed for SMB3 sessions in
/proc/fs/cifs/DebugData for total remaining credits remaining on the
session to the server) but it turned out the total is correct after
all   The cifs client reserves one credit for oplock and one for echo
so the number of remaining credits displayed will be two less than the
overall total of credits the client has been granted.  If you include
the two reserved credits (that the client keeps for lease and echo),
then the totals of credits that the client and server report matches.

-- 
Thanks,

Steve



More information about the samba-technical mailing list