]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkfront: negotiate number of queues/rings to be used with backend
authorBob Liu <bob.liu@oracle.com>
Sat, 14 Nov 2015 03:12:14 +0000 (11:12 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:24:51 +0000 (22:24 +0200)
commitb2cfe9c884e231be2db13bff674658e551a6876d
tree9c0c0ff5b9cc7a10d115b623a40153c6bf843df6
parent27af7856cbc0df280d3c6952e1fccedb75e34a59
xen/blkfront: negotiate number of queues/rings to be used with backend

The max number of hardware queues for xen/blkfront is set by parameter
'max_queues'(default 4), while it is also capped by the max value that the
xen/blkback exposes through XenStore key 'multi-queue-max-queues'.

The negotiated number is the smaller one and would be written back to xenstore
as "multi-queue-num-queues", blkback needs to read this negotiated number.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 28d949bcc28bbc2d206f9c3f69b892575e81c040)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkfront.c