Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LOCKD: Fix a race when initialising nlmsvc_timeout
commit 06bed7d upstream. This commit fixes a race whereby nlmclnt_init() first starts the lockd daemon, and then calls nlm_bind_host() with the expectation that nlmsvc_timeout has already been initialised. Unfortunately, there is no no synchronisation between lockd() and lockd_up() to guarantee that this is the case. Fix is to move the initialisation of nlmsvc_timeout into lockd_create_svc Fixes: 9a1b6bf ("LOCKD: Don't call utsname()->nodename...") Cc: Bruce Fields <[email protected]> Cc: [email protected] # 3.10.x Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information