[PATCH 0/2] block atomic writes tidy-ups/fix

From: John Garry
Date: Mon Aug 05 2024 - 07:33:54 EST


These two minor patches are tidy-ups for atomic write support.

Both are related to ignoring that REQ_ATOMIC can only be set for writes.

The block change could be considered a fix, as we are needlessly
checking for REQ_ATOMIC in fastpath.

Both changes can be picked up independently.

Thanks!

John Garry (2):
scsi: sd: Don't check if a write for REQ_ATOMIC
block: Don't check REQ_ATOMIC for reads

block/blk-core.c | 1 +
drivers/scsi/sd.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)

--
2.31.1