]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers:hv: Lock access to hyperv_mmio resource tree
authorJake Oshins <jakeo@microsoft.com>
Tue, 5 Apr 2016 17:22:50 +0000 (10:22 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 16 Sep 2016 17:08:45 +0000 (11:08 -0600)
commit027da5419bbc1133572ca46773f13ef07ca65373
treec538945bed3e06a89721c9995faa157c7b581be2
parent41d65daec9ddc440bb9a801992a712681ac17d0d
drivers:hv: Lock access to hyperv_mmio resource tree

BugLink: http://bugs.launchpad.net/bugs/1616677
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>
(back ported from commit e16dad6bfe1437aaee565f875a6713ca7ce81bdf)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
 Conflicts:
drivers/hv/vmbus_drv.c
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
drivers/hv/vmbus_drv.c