From: Steven Noonan Date: Fri, 17 Feb 2012 20:04:44 +0000 (-0800) Subject: xen-blkfront: make blkif_io_lock spinlock per-device X-Git-Tag: v3.4-rc3~12^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3467811e26660eb46bc655234573d22d6876d5f9;p=pandora-kernel.git xen-blkfront: make blkif_io_lock spinlock per-device This patch moves the global blkif_io_lock to the per-device structure. The spinlock seems to exists for two reasons: to disable IRQs when in the interrupt handlers for blkfront, and to protect the blkfront VBDs when a detachment is requested. Having a global blkif_io_lock doesn't make sense given the use case, and it drastically hinders performance due to contention. All VBDs with pending IOs have to take the lock in order to get work done, which serializes everything pretty badly. Signed-off-by: Steven Noonan Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed