Patch "block: Fix the type of the second bdev_op_is_zoned_write() argument" has been added to the 6.4-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

    block: Fix the type of the second bdev_op_is_zoned_write() argument

to the 6.4-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:
     block-fix-the-type-of-the-second-bdev_op_is_zoned_wr.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 1e161625da79905d79edfd0f93d012a919466595
Author: Bart Van Assche <bvanassche@xxxxxxx>
Date:   Wed May 17 10:42:21 2023 -0700

    block: Fix the type of the second bdev_op_is_zoned_write() argument
    
    [ Upstream commit 3ddbe2a7e0d4a155a805f69c906c9beed30d4cc4 ]
    
    Change the type of the second argument of bdev_op_is_zoned_write() from
    blk_opf_t into enum req_op because this function expects an operation
    without flags as second argument.
    
    Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
    Reviewed-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
    Reviewed-by: Christoph Hellwig <hch@xxxxxx>
    Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
    Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
    Cc: Ming Lei <ming.lei@xxxxxxxxxx>
    Fixes: 8cafdb5ab94c ("block: adapt blk_mq_plug() to not plug for writes that require a zone lock")
    Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
    Link: https://lore.kernel.org/r/20230517174230.897144-4-bvanassche@xxxxxxx
    Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index c0ffe203a6022..be9d7d8237b33 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1282,7 +1282,7 @@ static inline unsigned int bdev_zone_no(struct block_device *bdev, sector_t sec)
 }
 
 static inline bool bdev_op_is_zoned_write(struct block_device *bdev,
-					  blk_opf_t op)
+					  enum req_op op)
 {
 	if (!bdev_is_zoned(bdev))
 		return false;



[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