powerpc/iommu: Reduce spinlock coverage in iommu_free
authorAnton Blanchard <anton@samba.org>
Sun, 3 Jun 2012 19:43:44 +0000 (19:43 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:47 +0000 (14:14 +1000)
commit67ca141567519a6b0ec81850a7b6569b6d8c2b52
tree204f16ef14591930529216357f39a4ed88ced14e
parent0e4bc95d87394364f408627067238453830bdbf3
powerpc/iommu: Reduce spinlock coverage in iommu_free

This patch moves tce_free outside of the lock in iommu_free.

Some performance numbers were obtained with a Chelsio T3 adapter on
two POWER7 boxes, running a 100 session TCP round robin test.

Performance improved 25% with this patch applied.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/iommu.c