Patch "[PATCH 099/135] Drivers: hv: vmbus: don't manipulate with" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
[PATCH 099/135] Drivers: hv: vmbus: don't manipulate with
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
0099-Drivers-hv-vmbus-don-t-manipulate-with-clocksources-.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6039340ca3dd6603715e81cbb9823fbc28a72574Mon Sep 17 00:00:00 2001
From: Vitaly Kuznetsov <[email protected]>
Date: Wed, 27 Jan 2016 22:29:36 -0800
Subject: [PATCH 099/135] Drivers: hv: vmbus: don't manipulate with
clocksources on crash
[ Upstream commit 3ccb4fd8f492f99aece21acc1bd6142275f26236 ]
clocksource_change_rating() involves mutex usage and can't be called in interrupt context. It also makes sense to avoid doing redundant work on crash.
--- drivers/hv/hv.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/hv/hv.c +8 -2
@@ -293,8 +293,14 @@ void hv_cleanup(void)* Cleanup the TSC page based CS. */ if (ms_hyperv.features &HV_X64_MSR_REFERENCE_TSC_AVAILABLE ) { -clocksource_change_rating (&hyperv_cs_tsc,10 ); -clocksource_unregister (&hyperv_cs_tsc); +/* +* Crash can happen in an interrupt context and unregistering +* a clocksource is impossible and redundant in this case. +*/ +if (!oops_in_progress) { +clocksource_change_rating (&hyperv_cs_tsc,10 ); +clocksource_unregister (&hyperv_cs_tsc); + } hypercall_msr.as_uint64 =0 ;wrmsrl (HV_X64_MSR_REFERENCE_TSC , hypercall_msr.as_uint64);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/0038-drivers-hv-cleanup-synic-msrs-if-vmbus-connect-faile.patch queue-4.4/0097-Drivers-hv-vmbus-avoid-infinite-loop-in-init_vp_inde.patch queue-4.4/0118-clocksource-Allow-unregistering-the-watchdog.patch queue-4.4/0099-Drivers-hv-vmbus-don-t-manipulate-with-clocksources-.patch queue-4.4/0127-x86-hyperv-Avoid-reporting-bogus-NMI-status-for-Gen2.patch queue-4.4/0098-Drivers-hv-vmbus-avoid-scheduling-in-interrupt-conte.patch