diff options
| author | Trond Myklebust <[email protected]> | 2015-01-02 20:05:25 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2015-01-06 03:40:53 +0000 |
| commit | 06bed7d18c2c07b3e3eeadf4bd357f6e806618cc (patch) | |
| tree | f2ae023f8f7349a93c40e5c01c5857dc4e321447 /lib/cpu-notifier-error-inject.c | |
| parent | Linux 3.19-rc3 (diff) | |
| download | kernel-06bed7d18c2c07b3e3eeadf4bd357f6e806618cc.tar.gz kernel-06bed7d18c2c07b3e3eeadf4bd357f6e806618cc.zip | |
LOCKD: Fix a race when initialising nlmsvc_timeout
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: 9a1b6bf818e74 ("LOCKD: Don't call utsname()->nodename...")
Cc: Bruce Fields <[email protected]>
Cc: [email protected] # 3.10.x
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
