summaryrefslogtreecommitdiffstats
path: root/drivers/sn
diff options
context:
space:
mode:
authorSteven Noonan <snoonan@amazon.com>2012-02-17 12:04:44 -0800
committerJens Axboe <axboe@kernel.dk>2012-03-20 12:52:41 +0100
commit3467811e26660eb46bc655234573d22d6876d5f9 (patch)
treeb57b2cdc3d373af79062bc26cd71500773c64fb5 /drivers/sn
parentdad5cf659b202b5070c8616b5c515f6ca4db0c42 (diff)
downloadblackbird-op-linux-3467811e26660eb46bc655234573d22d6876d5f9.tar.gz
blackbird-op-linux-3467811e26660eb46bc655234573d22d6876d5f9.zip
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 <snoonan@amazon.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud