dm: disable REQ_NOWAIT for flushes
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 9 Jan 2025 13:49:11 +0000 (14:49 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 17 Jan 2025 21:05:39 +0000 (22:05 +0100)
commitcd6521d03f6a722f18fc027f0d289c39d164dc4f
treedc8b5e72e76d6b23f383c969e703ec7c33080efd
parent6942348d1bbdb612bc14025cab467fd1f012abe8
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: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm.c