diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2016-11-23 17:04:00 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-11 16:03:51 +0200 |
| commit | 3ce44cad02d3987d71ee69eed1e3b9e59559417c (patch) | |
| tree | 359d6e7080aa56449fcc5307bc86539f7c251f33 /mm/page_alloc.c | |
| parent | 7396cb30cbfb379fb9fe715f348f2effe8eb52b7 (diff) | |
dm bufio: drop the lock when doing GFP_NOIO allocation
commit 41c73a49df31151f4ff868f28fe4f129f113fa2c upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions
