smb: client: print failed session logoffs with FYI
authorPaulo Alcantara <pc@manguebit.com>
Wed, 18 Sep 2024 05:04:06 +0000 (02:04 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 25 Sep 2024 02:54:03 +0000 (21:54 -0500)
Do not flood dmesg with failed session logoffs as kerberos tickets
getting expired or passwords being rotated is a very common scenario.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c

index 0e00c98..adf8758 100644 (file)
@@ -2060,8 +2060,7 @@ void __cifs_put_smb_ses(struct cifs_ses *ses)
        if (do_logoff) {
                xid = get_xid();
                rc = server->ops->logoff(xid, ses);
-               if (rc)
-                       cifs_server_dbg(VFS, "%s: Session Logoff failure rc=%d\n",
+               cifs_server_dbg(FYI, "%s: Session Logoff: rc=%d\n",
                                __func__, rc);
                _free_xid(xid);
        }