]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkfront: always allocate grants first from per-queue persistent grants
authorDongli Zhang <dongli.zhang@oracle.com>
Wed, 2 Aug 2017 00:03:19 +0000 (08:03 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 2 Aug 2017 03:51:34 +0000 (20:51 -0700)
commit62d57007c38a5ca3740d3212badc5def5dbdf616
treec2f17ea4b5718a9a7be2f27261995928990b1718
parentdeee422994105b214448d01c7fd265f5789e7f15
xen/blkfront: always allocate grants first from per-queue persistent grants

This patch partially reverts 3df0e50 ("xen/blkfront: pseudo support for
multi hardware queues/rings"). The xen-blkfront queue/ring might hang due
to grants allocation failure in the situation when gnttab_free_head is
almost empty while many persistent grants are reserved for this queue/ring.

As persistent grants management was per-queue since 73716df ("xen/blkfront:
make persistent grants pool per-queue"), we should always allocate from
persistent grants first.

Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Orabug: 26351401

upstream commit: bd912ef3e46b6edb51bb8af4b73fd2be7817e305
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c