dm-crypt: enable DM_TARGET_ATOMIC_WRITES
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 5 Nov 2025 15:02:36 +0000 (16:02 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 10 Dec 2025 18:28:22 +0000 (19:28 +0100)
commitce51c6963a91cc6d5c9cf6c3735991882f72587d
tree917938fb06c93293663851e8b0184b34afcee18b
parentde67c139b3846ece6b8bbb62abf1f010ae85c083
dm-crypt: enable DM_TARGET_ATOMIC_WRITES

Allow handling of bios with REQ_ATOMIC flag set.

Don't split these bios and fail them if they overrun the hard limit
"BIO_MAX_VECS << PAGE_SHIFT".

In order to simplify the code, this commit joins the logic that avoids
splitting emulated zone append bios with the logic that avoids
splitting atomic write bios.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: John Garry <john.g.garry@oracle.com>
drivers/md/dm-crypt.c