kernel_optimize_test/drivers/hv
Dexuan Cui 41e270f689 Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect()
With CONFIG_DEBUG_PREEMPT=y, I always see this warning:
BUG: using smp_processor_id() in preemptible [00000000]

Fix the false warning by using get/put_cpu().

Here vmbus_connect() sends a message to the host and waits for the
host's response. The host will deliver the response message and an
interrupt on CPU msg->target_vcpu, and later the interrupt handler
will wake up vmbus_connect(). vmbus_connect() doesn't really have
to run on the same cpu as CPU msg->target_vcpu, so it's safe to
call put_cpu() just here.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: stable@vger.kernel.org
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-30 08:49:55 -07:00
..
channel_mgmt.c Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind() 2018-08-02 10:20:59 +02:00
channel.c Drivers: hv: vmbus: Remove use of slow_virt_to_phys() 2018-08-02 10:20:59 +02:00
connection.c Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect() 2018-09-30 08:49:55 -07:00
hv_balloon.c use the new async probing feature for the hyperv drivers 2018-07-03 13:02:28 +02:00
hv_fcopy.c
hv_kvp.c
hv_snapshot.c
hv_trace_balloon.h
hv_trace.c
hv_trace.h
hv_util.c use the new async probing feature for the hyperv drivers 2018-07-03 13:02:28 +02:00
hv_utils_transport.c
hv_utils_transport.h
hv.c Drivers: hv: vmbus: Cleanup synic memory free path 2018-08-02 10:20:59 +02:00
hyperv_vmbus.h
Kconfig
Makefile
ring_buffer.c Drivers: hv: vmbus: Add comments on ring buffer signaling 2018-07-03 13:02:28 +02:00
vmbus_drv.c vmbus: don't return values for uninitalized channels 2018-09-12 09:31:00 +02:00