summaryrefslogtreecommitdiffstats
path: root/mm/swap_slots.c
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2018-09-17 04:14:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-30 08:49:55 -0700
commit41e270f6898e7502be9fd6920ee0a108ca259d36 (patch)
treef74679a9255c3b509d8c6cf1e400f772e4ff5a48 /mm/swap_slots.c
parent17b57b1883c1285f3d0dc2266e8f79286a7bef38 (diff)
downloadlinux-41e270f6898e7502be9fd6920ee0a108ca259d36.tar.gz
linux-41e270f6898e7502be9fd6920ee0a108ca259d36.tar.bz2
linux-41e270f6898e7502be9fd6920ee0a108ca259d36.zip
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>
Diffstat (limited to 'mm/swap_slots.c')
0 files changed, 0 insertions, 0 deletions