]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:20:38 +0000 (22:20 +0200)
commitf20b699d3cfdd71a225a3082708b51fbcf72a4d0
tree5a05e81e5c041fa9370b9ed79c34740d71202c4e
parent13001d74c3a0be6831dd8469266ad1d90ba19397
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>
(cherry picked from commit 81f351615772365d46ceeac3e50c9dd4e8f9dc89)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Conflicts:
drivers/block/xen-blkfront.c
drivers/block/xen-blkfront.c