]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: Do not drop __GFP_HIGH in alloc_indirect
authorMichal Hocko <mhocko@suse.com>
Tue, 1 Dec 2015 14:32:49 +0000 (15:32 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2015 15:28:11 +0000 (17:28 +0200)
commit75c77e813fec581ac8d133c14fabc1a0e18195d1
tree8e3a313983e66ac7bc8ff5bab6924a740f8af8ac
parent5fe1a2ebba0c4a0ec7f9deb3d8b22805b6d20660
virtio: Do not drop __GFP_HIGH in alloc_indirect

54b2f55e3cf5 ("virtio: force vring descriptors to be allocated from
lowmem") tried to exclude highmem pages for descriptors so it cleared
__GFP_HIGHMEM from a given gfp mask. The patch also cleared __GFP_HIGH
which doesn't make much sense for this fix because __GFP_HIGH only
controls access to memory reserves and it doesn't have any influence
on the zone selection. Some of the call paths use GFP_ATOMIC and
dropping __GFP_HIGH will reduce their changes for success because the
lack of access to memory reserves.

Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Mel Gorman <mgorman@techsingularity.net>
drivers/virtio/virtio_ring.c