]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkfront: correct setting for xen_blkif_max_ring_order
authorPeng Fan <van.freenix@gmail.com>
Wed, 25 Nov 2015 10:26:01 +0000 (18:26 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:25:33 +0000 (22:25 +0200)
commite5f254a631edd88f4549d0fa86b8eee859982e47
treed03f26ed0d1ccba426cce55aa2bb2732de199633
parent5c9355e9943f4a160162bae26138195c29a753cc
xen/blkfront: correct setting for xen_blkif_max_ring_order

According to this piece code:
"
     pr_info("Invalid max_ring_order (%d), will use default max: %d.\n",
              xen_blkif_max_ring_order, XENBUS_MAX_RING_GRANT_ORDER);
"
if xen_blkif_max_ring_order is bigger that XENBUS_MAX_RING_GRANT_ORDER,
need to set xen_blkif_max_ring_order using XENBUS_MAX_RING_GRANT_ORDER,
but not 0.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 45fc82642e54018740a25444d1165901501b601b)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkfront.c