iommu/vt-d: Use RCU to protect global resources in interrupt context
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 19 Feb 2014 06:07:34 +0000 (14:07 +0800)
committerJoerg Roedel <joro@8bytes.org>
Tue, 4 Mar 2014 16:51:05 +0000 (17:51 +0100)
commit0e242612d9cdb46e878ed1f126c78fe68492af00
treeab7c73c8ebb07c94ac42d93de529f9905569ab09
parent3a5670e8ac932c10a3e50d9dc0ab1da4cc3041d7
iommu/vt-d: Use RCU to protect global resources in interrupt context

Global DMA and interrupt remapping resources may be accessed in
interrupt context, so use RCU instead of rwsem to protect them
in such cases.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
include/linux/dmar.h