]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-blkfront: don't add indirect pages to list when !feature_persistent
authorBob Liu <bob.liu@oracle.com>
Wed, 22 Jul 2015 06:40:09 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:38 +0000 (09:07 -0700)
commit8fab9f94b4b4d5487bb3e2b683f7f85e8aba5c09
treea80261d59d191d206cfad2856e8d4943cb4ccc64
parent48f8d0f5a4fec334ec2c3c5c6ec6867a885e2329
xen-blkfront: don't add indirect pages to list when !feature_persistent

commit 7b0767502b5db11cb1f0daef2d01f6d71b1192dc upstream.

We should consider info->feature_persistent when adding indirect page to list
info->indirect_pages, else the BUG_ON() in blkif_free() would be triggered.

When we are using persistent grants the indirect_pages list
should always be empty because blkfront has pre-allocated enough
persistent pages to fill all requests on the ring.

Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkfront.c