]> git.baikalelectronics.ru Git - kernel.git/commit
xen/blkfront: separate per ring information out of device info
authorBob Liu <bob.liu@oracle.com>
Sat, 14 Nov 2015 03:12:11 +0000 (11:12 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 4 Jan 2016 14:56:02 +0000 (09:56 -0500)
commit4c42e1c1a41db28c81738db8d74745bf24a19e34
treedc006e8946dcec46556674e9699156db8cea7cdb
parent0cf1b7c62cebc5bc0619005b49a023f750164d49
xen/blkfront: separate per ring information out of device info

Split per ring information to a new structure "blkfront_ring_info".

A ring is the representation of a hardware queue, every vbd device can associate
with one or more rings depending on how many hardware queues/rings to be used.

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

We also add a backpointer to 'struct blkfront_info' (dev_info) which
is not needed (we could use containers_of) but further patch
("xen/blkfront: pseudo support for multi hardware queues/rings")
will make allocation of 'blkfront_ring_info' dynamic.

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>
drivers/block/xen-blkfront.c