Commit cd6521d0 authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

dm: disable REQ_NOWAIT for flushes



REQ_NOWAIT for flushes cannot be easily supported by device mapper
because it may allocate multiple bios and its impossible to undo if one
of those allocations wants to wait. So, this patch disables REQ_NOWAIT
flushes in device mapper and we always return EAGAIN.

Previously, the code accepted REQ_NOWAIT flushes, but the non-blocking
execution was not guaranteed.

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