Drivers: hv: util: don't forget to init host_ts.lock
PATCH 1/1 Drivers: hv: util: don't forget to init host_ts.lock
From: Dexuan Cui <[email protected]>
Without the patch, I always get a "BUG: spinlock bad magic" warning.
--- drivers/hv/hv_util.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/hv/hv_util.c +2 -0
@@ -590,6 +590,8 @@ static int hv_timesync_init(struct hv_util_service *srv)if (!hyperv_cs)return -ENODEV ; +spin_lock_init (&host_ts.lock); +INIT_WORK (&wrk.work, hv_set_host_time);/*
Signature · 1 line
1.7.1
Quoted 48 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, February 27, 2017 5:26 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Dexuan Cui <[email protected]>; KY Srinivasan <[email protected]>; Haiyang Zhang <[email protected]>; Stephen Hemminger <[email protected]>
Subject: [PATCH 1/1] Drivers: hv: util: don't forget to init host_ts.lockThis sender failed our fraud detection&nbs p;checks and may not be who they& nbsp;appear to be. Learn about <a href="http://aka.ms/LearnAboutSpoofing">spoofing</a>
From: Dexuan Cui <[email protected]>
Without the patch, I always get a "BUG: spinlock bad magic" warning.
Fixes 3716a49a81ba ("hv_utils: implement Hyper-V PTP source")Signed-off-by Dexuan Cui <[email protected]>Cc Vitaly Kuznetsov <[email protected]>Cc "K. Y. Srinivasan" <[email protected]>Cc Haiyang Zhang <[email protected]>Cc Stephen Hemminger <[email protected]>Signed-off-by K. Y. Srinivasan <[email protected]>--- drivers/hv/hv_util.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/hv/hv_util.c +2
-1@@ -590,6 +590,8 @@ static int hv_timesync_init(struct hv_util_service *srv)if (!hyperv_cs)return -ENODEV ; +spin_lock_init (&host_ts.lock); +INIT_WORK (&wrk.work, hv_set_host_time);/* --
Quoted 1 line
1.7.1
Greg,
Please drop this patch; I am going to resend.
K. Y