Patch "scsi: block: Don't check REQ_ATOMIC for reads" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: block: Don't check REQ_ATOMIC for reads

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-block-don-t-check-req_atomic-for-reads.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2ee6f7f92ef95cb6cd79f2e4000f5e6be34c846a
Author: John Garry <john.g.garry@xxxxxxxxxx>
Date:   Mon Aug 5 11:33:15 2024 +0000

    scsi: block: Don't check REQ_ATOMIC for reads
    
    [ Upstream commit ea6787c695ab7595d851c3506f67c157f3b593c0 ]
    
    We check in submit_bio_noacct() if flag REQ_ATOMIC is set for both read and
    write operations, and then validate the atomic operation if set. Flag
    REQ_ATOMIC can only be set for writes, so don't bother checking for reads.
    
    Fixes: 9da3d1e912f3 ("block: Add core atomic write support")
    Signed-off-by: John Garry <john.g.garry@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240805113315.1048591-3-john.g.garry@xxxxxxxxxx
    Reviewed-by: Kanchan Joshi <joshi.k@xxxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/block/blk-core.c b/block/blk-core.c
index 1217c2cd66dd8..bc5e8c5eaac9f 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -799,6 +799,7 @@ void submit_bio_noacct(struct bio *bio)
 
 	switch (bio_op(bio)) {
 	case REQ_OP_READ:
+		break;
 	case REQ_OP_WRITE:
 		if (bio->bi_opf & REQ_ATOMIC) {
 			status = blk_validate_atomic_write_op_size(q, bio);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux