]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: target: Add atomic support to target_core_iblock
authorMike Christie <michael.christie@oracle.com>
Mon, 20 Oct 2025 10:38:20 +0000 (10:38 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Nov 2025 02:40:02 +0000 (21:40 -0500)
commit8e62d8f4b159ae80b4db5b5e46db0c5fec58c4a2
tree095c5317c0b24960c03fd89356dd9d70d81706fe
parent2d9668883bba31b206f9b02bfc8db1fcb4ca6079
scsi: target: Add atomic support to target_core_iblock

Make target_core_iblock use the LIO helper function to translate its
block_device atomic settings to LIO settings. If we then get a write
that LIO has indicated is atomic via the SCF_ATOMIC flag, we use the
REQ_ATOMIC flag to tell the block layer to perform an atomic write.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251020103820.2917593-8-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_iblock.c