Skip to content

Commit 16a57d7

Browse files
sprasad-microsoftsmfrench
authored andcommitted
cifs: reduce warning log level for server not advertising interfaces
Several users have reported this log getting dumped too regularly to kernel log. The likely root cause has been identified, and it suggests that this situation is expected for some configurations (for example SMB2.1). Since the function returns appropriately even for such cases, it is fairly harmless to make this a debug log. When needed, the verbosity can be increased to capture this log. Cc: stable@vger.kernel.org Reported-by: Jan Čermák <sairon@sairon.cz> Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 13c0a74 commit 16a57d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/client/sess.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ int cifs_try_adding_channels(struct cifs_ses *ses)
230230
spin_lock(&ses->iface_lock);
231231
if (!ses->iface_count) {
232232
spin_unlock(&ses->iface_lock);
233-
cifs_dbg(VFS, "server %s does not advertise interfaces\n",
233+
cifs_dbg(ONCE, "server %s does not advertise interfaces\n",
234234
ses->server->hostname);
235235
break;
236236
}
@@ -396,7 +396,7 @@ cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server)
396396
spin_lock(&ses->iface_lock);
397397
if (!ses->iface_count) {
398398
spin_unlock(&ses->iface_lock);
399-
cifs_dbg(VFS, "server %s does not advertise interfaces\n", ses->server->hostname);
399+
cifs_dbg(ONCE, "server %s does not advertise interfaces\n", ses->server->hostname);
400400
return;
401401
}
402402

0 commit comments

Comments
 (0)