Commit 6942348d authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

dm: remove useless test in alloc_multiple_bios



The test gfp_flag & GFP_NOWAIT was always true, because both GFP_NOIO and
GFP_NOWAIT include the flag __GFP_KSWAPD_RECLAIM. Luckily, this oversight
didn't result in any harm; the loop always started with "try = 0".

This patch removes the faulty test and explicitly starts the loop with
"try = 0" (so that we don't hold the mutex in the first iteration).

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent c3a1f2ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment