PCI: hv: Convert remove_lock to refcount
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 23 May 2018 17:11:13 +0000 (10:11 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 24 May 2018 12:58:39 +0000 (13:58 +0100)
commit6708be936715fd673273dede40367b2ea0cba768
tree24c9daf6c248b92fcd7bf647e261469e67ed736e
parent8c99e120ffcabc429d74e1e4d10db893c6888ef4
PCI: hv: Convert remove_lock to refcount

Use refcount instead of atomic for the reference counting
on bus. Refcount is safer because it handles overflow correctly.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
[lorenzo.pieralisi@arm.com: updated commit subject]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/host/pci-hyperv.c