]> git.baikalelectronics.ru Git - kernel.git/commit
dm ioctl: restore __GFP_HIGH in copy_params()
authorJunaid Shahid <junaids@google.com>
Thu, 18 May 2017 19:00:51 +0000 (12:00 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 22 May 2017 23:30:03 +0000 (19:30 -0400)
commit93449e31838c5b2a572f3378eb963c5709317fad
tree1b890d720aba77344c49cb306a469dae44ce1ac0
parent90742cf200dd64670cf7a2c8988cfa1a4c580158
dm ioctl: restore __GFP_HIGH in copy_params()

Commit 7ba4e077bdcc ("drivers/md/dm-ioctl.c: use kvmalloc rather than
opencoded variant") left out the __GFP_HIGH flag when converting from
__vmalloc to kvmalloc.  This can cause the DM ioctl to fail in some low
memory situations where it wouldn't have failed earlier.  Add __GFP_HIGH
back to avoid any potential regression.

Fixes: 7ba4e077bdcc ("drivers/md/dm-ioctl.c: use kvmalloc rather than opencoded variant")
Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c