drivers:hv: Lock access to hyperv_mmio resource tree
authorJake Oshins <jakeo@microsoft.com>
Tue, 30 Aug 2016 04:35:06 +0000 (00:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:50 +0000 (08:27 +0200)
commit45a063156fc5822f3f72bee0bc986de63e7ed73b
tree164e68c0864199f311a9236ac3a8d796739fd97d
parentd4009e4b6e309e222c5245056f4d6e1a4da88026
drivers:hv: Lock access to hyperv_mmio resource tree

[ Upstream commit e16dad6bfe1437aaee565f875a6713ca7ce81bdf ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/hv/vmbus_drv.c