]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: do not poll server interfaces too regularly
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 8 Mar 2023 12:11:31 +0000 (12:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:20 +0000 (12:49 +0200)
commitee1767a12e130e735a6c2a4faf03cde2c9c5c557
treedb443990acc25190ee8fed111c7ce3613583f8b6
parenta163106b6d16a12fd5b9dadb304d274176d60639
cifs: do not poll server interfaces too regularly

commit 072a28c8907c841f7d4b56c78bce46d3ee211e73 upstream.

We have the server interface list hanging off the tcon
structure today for reasons unknown. So each tcon which is
connected to a file server can query them separately,
which is really unnecessary. To avoid this, in the query
function, we will check the time of last update of the
interface list, and avoid querying the server if it is
within a certain range.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2ops.c