]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: update ip_addr for ses only for primary chan setup
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 10 Feb 2023 17:41:17 +0000 (17:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:33 +0000 (12:10 +0200)
commitf60cdd319b2c35df32934802ce2bfb6810cac048
tree0ff2e5496d921c018ba3b8e63600c19a09db99bf
parenteddee1c229c21ad1686547d50ebd0c835a20cd30
cifs: update ip_addr for ses only for primary chan setup

[ Upstream commit e77978de4765229e09c8fabcf4f8419ff367317f ]

We update ses->ip_addr whenever we do a session setup.
But this should happen only for primary channel in mchan
scenario.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: bc962159e8e3 ("cifs: avoid race conditions with parallel reconnects")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/connect.c