NeilBrown 7e8b94045b nfsd: initialise nfsd_info.mutex early.
[ Upstream commit e0011bca603c101f2a3c007bdb77f7006fa78fb1 ]

nfsd_info.mutex can be dereferenced by svc_pool_stats_start()
immediately after the new netns is created.  Currently this can
trigger an oops.

Move the initialisation earlier before it can possibly be dereferenced.

Fixes: 7b207ccd9833 ("svc: don't hold reference for poolstats, only mutex.")
Reported-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Closes: https://lore.kernel.org/all/c2e9f6de-1ec4-4d3a-b18d-d5a6ec0814a0@linux.ibm.com/
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:38:02 +02:00
..
2023-11-07 12:11:26 -08:00
2024-03-12 14:27:37 -07:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2024-04-25 09:31:06 -07:00
2024-03-12 14:27:37 -07:00
2024-04-06 09:37:50 -07:00
2023-10-16 12:44:14 -04:00
2024-03-18 10:33:05 -04:00
2024-03-28 14:35:32 -07:00