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)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Mar 2023 16:19:42 +0000 (11:19 -0500)
commit072a28c8907c841f7d4b56c78bce46d3ee211e73
tree5d51b1022b06d5bdebbb0beb3ce89e381046a710
parent2f4e429c846972c8405951a9ff7a82aceeca7461
cifs: do not poll server interfaces too regularly

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>
fs/cifs/smb2ops.c