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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 4 Jan 2016 17:21:02 +0000 (12:21 -0500)
commit28d949bcc28bbc2d206f9c3f69b892575e81c040
tree65d98aaf0411b69e56189d8a6b91431dfa0b74af
parent11659569f7202d0cb6553e81f9b8aa04dfeb94ce
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>
drivers/block/xen-blkfront.c