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

John Garry posted 2 patches 1 year, 4 months ago
block/blk-core.c  | 1 +
drivers/scsi/sd.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[PATCH 0/2] block atomic writes tidy-ups/fix
Posted by John Garry 1 year, 4 months ago
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
Re: [PATCH 0/2] block atomic writes tidy-ups/fix
Posted by Martin K. Petersen 1 year, 4 months ago
On Mon, 05 Aug 2024 11:33:13 +0000, John Garry wrote:

> 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.
> 
> [...]

Applied to 6.12/scsi-queue, thanks!

[1/2] scsi: sd: Don't check if a write for REQ_ATOMIC
      https://git.kernel.org/mkp/scsi/c/0c150b30d3d5
[2/2] block: Don't check REQ_ATOMIC for reads
      https://git.kernel.org/mkp/scsi/c/ea6787c695ab

-- 
Martin K. Petersen	Oracle Linux Engineering
Re: [PATCH 0/2] block atomic writes tidy-ups/fix
Posted by Martin K. Petersen 1 year, 4 months ago
John,

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

Applied to 6.12/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering