drivers:hv: Lock access to hyperv_mmio resource tree
commite16dad6bfe1437aaee565f875a6713ca7ce81bdf
authorJake Oshins <jakeo@microsoft.com>
Tue, 5 Apr 2016 17:22:50 +0000 (5 10:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 21:01:37 +0000 (30 14:01 -0700)
tree9b49cee2a34adeea5ada23ceffb08fa5ce6c8b21
parentab028db41ca9174caab7f9e3fc0a2e7f4a418410
drivers:hv: Lock access to hyperv_mmio resource tree

In existing code, this tree of resources is created
in single-threaded code and never modified after it is
created, and thus needs no locking.  This patch introduces
a semaphore for tree access, as other patches in this
series introduce run-time modifications of this resource
tree which can happen on multiple threads.

Signed-off-by: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/vmbus_drv.c