smb: smbdirect: fix inverted comparison operator in negotiation log message
Subsystems (2)
PATCH 1/1 smb: smbdirect: fix inverted comparison operator in negotiation log message
The condition checks preferred_send_size > max_recv_size, but the error message prints "<" instead of ">", making the log misleading when debugging SMBDirect RDMA negotiation failures.
--- fs/smb/common/smbdirect/smbdirect_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/common/smbdirect/smbdirect_connect.c +1 -1
@@ -790,7 +790,7 @@ static void smbdirect_connect_negotiate_recv_work(struct work_struct *work)if (preferred_send_size > sp->max_recv_size) {smbdirect_log_rdma_event (sc,SMBDIRECT_LOG_ERR , -"invalid: preferred_send_size=%u < max_recv_size=%u\n" , +"invalid: preferred_send_size=%u > max_recv_size=%u\n" , preferred_send_size, sp->max_recv_size);smbdirect_socket_schedule_cleanup (sc, -ECONNABORTED );
Signature · 1 line
2.51.0
Quoted 6 lines · David Carlier
The condition checks
preferred_send_size>max_recv_size, but the error message prints "<" instead of ">", making the log misleading when debugging SMBDirect RDMA negotiation failures.Signed-off-by David Carlier <[email protected]>
Thanks!
Added to ksmbd-for-next
(for 7.1-rc since file does not exist in 7.0-rc3 yet, it depends on the RDMA/smbdirect patch series in ksmbd-for-next)
Quoted 10 lines · Namjae Jeon
Quoted 6 lines · David Carlier
The condition checks
preferred_send_size>max_recv_size, but the error message prints "<" instead of ">", making the log misleading when debugging SMBDirect RDMA negotiation failures.Signed-off-by David Carlier <[email protected]>Acked-by Namjae Jeon <[email protected]>Thanks!
Signature · 3 lines
Thanks, Steve