]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/md/dm-bufio.c
dm bufio: drop the lock when doing GFP_NOIO allocation
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 23 Nov 2016 22:04:00 +0000 (17:04 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 8 Dec 2016 19:13:05 +0000 (14:13 -0500)
commit41c73a49df31151f4ff868f28fe4f129f113fa2c
tree673d805c470b5aed20be74336a089e427d92a933
parentd12067f428c037b4575aaeb2be00847fc214c24a
dm bufio: drop the lock when doing GFP_NOIO allocation

If the first allocation attempt using GFP_NOWAIT fails, drop the lock
and retry using GFP_NOIO allocation (lock is dropped because the
allocation can take some time).

Note that we won't do GFP_NOIO allocation when we loop for the second
time, because the lock shouldn't be dropped between __wait_for_free_buffer
and __get_unclaimed_buffer.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c