From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF7C617552; Mon, 1 Apr 2024 15:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711987086; cv=none; b=tJHS2ethS5v5Ot4PRHz9ciKbx0alAfRxmZ3cvDPKKi7oxT9dzE86le2gAnjJAXgefvclvDqtlNtfilsoVaBBS2NGYztfdAXHOXib5JNClpy2SfGDIlqNArVtTYj/vJc0H0crUb7wNOlzNJq0BYmPM0CFUG749dxXqTMHkoA9J+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711987086; c=relaxed/simple; bh=HkriKWjRsANeakES95UtjIvSroR9EMe6sniv7mjQ+rQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bYB4uTkub6DM5+P85G2clbLSSu/cNIhoa+aZN020COu7FlhyAFjLwbhRUV205ilfrKIRxRcfP1MaWEUQ596e9IfKDTpCzflZ+/XB7G7l0nhDSzEpUMe8QRt+o+iuTKe5cGc775GDp2ms64syL51U2v1vLZMZc+FJWNHTWw8zJmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Uwh8RVDY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Uwh8RVDY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CB11C433F1; Mon, 1 Apr 2024 15:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711987085; bh=HkriKWjRsANeakES95UtjIvSroR9EMe6sniv7mjQ+rQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uwh8RVDYQjr+LxTRQpM5KFUi1OF6QDJOvu+RKAdhXxV6BWlKMdZBmuGna1q03eZHQ pT8POhws+l89zlNMmKZmXJWw4yRM3tFC+11/32hkWCH8tnOsPA3m52xzbRx1zoUG3o ZpIDKGF6ydQhWL4BKh8u8gkeqqFo4QDiV8dq3emc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= , Shyam Prasad N , Steve French , Sasha Levin Subject: [PATCH 6.8 180/399] cifs: reduce warning log level for server not advertising interfaces Date: Mon, 1 Apr 2024 17:42:26 +0200 Message-ID: <20240401152554.549332914@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240401152549.131030308@linuxfoundation.org> References: <20240401152549.131030308@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shyam Prasad N [ Upstream commit 16a57d7681110b25708c7042688412238e6f73a9 ] 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 Signed-off-by: Shyam Prasad N Signed-off-by: Steve French Signed-off-by: Sasha Levin --- fs/smb/client/sess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/smb/client/sess.c b/fs/smb/client/sess.c index 8f37373fd3334..3216f786908fb 100644 --- a/fs/smb/client/sess.c +++ b/fs/smb/client/sess.c @@ -230,7 +230,7 @@ int cifs_try_adding_channels(struct cifs_ses *ses) spin_lock(&ses->iface_lock); if (!ses->iface_count) { spin_unlock(&ses->iface_lock); - cifs_dbg(VFS, "server %s does not advertise interfaces\n", + cifs_dbg(ONCE, "server %s does not advertise interfaces\n", ses->server->hostname); break; } @@ -396,7 +396,7 @@ cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) spin_lock(&ses->iface_lock); if (!ses->iface_count) { spin_unlock(&ses->iface_lock); - cifs_dbg(VFS, "server %s does not advertise interfaces\n", ses->server->hostname); + cifs_dbg(ONCE, "server %s does not advertise interfaces\n", ses->server->hostname); return; } -- 2.43.0