]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkback: separate ring information out of struct xen_blkif
authorBob Liu <bob.liu@oracle.com>
Sat, 14 Nov 2015 03:12:15 +0000 (11:12 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:25:44 +0000 (22:25 +0200)
commit610f4c950232396fe213aa873421c62aceebdf3e
treea4c47d8803b5863ca2561453b35f3fd7dbaf1c8d
parente5f254a631edd88f4549d0fa86b8eee859982e47
xen/blkback: separate ring information out of struct xen_blkif

Split per ring information to an new structure "xen_blkif_ring", so that one vbd
device can be associated with one or more rings/hardware queues.

Introduce 'pers_gnts_lock' to protect the pool of persistent grants since we
may have multi backend threads.

This patch is a preparation for supporting multi hardware queues/rings.

Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
v2: Align the variables in the structure.
(cherry picked from commit 597957000ab5b1b38085c20868f3f7b9c305bae5)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c