Patch "block: Fix the bio.bi_opf comment" has been added to the 5.15-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 bio.bi_opf comment

to the 5.15-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-bio.bi_opf-comment.patch
and it can be found in the queue-5.15 subdirectory.

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



commit f74c45f0aac4c73fcea497511e9159904eac938f
Author: Bart Van Assche <bvanassche@xxxxxxx>
Date:   Wed May 11 16:51:52 2022 -0700

    block: Fix the bio.bi_opf comment
    
    [ Upstream commit 5d2ae14276e698c76fa0c8ce870103f343b38263 ]
    
    Commit ef295ecf090d modified the Linux kernel such that the bottom bits
    of the bi_opf member contain the operation instead of the topmost bits.
    That commit did not update the comment next to bi_opf. Hence this patch.
    
    From commit ef295ecf090d:
    -#define bio_op(bio)    ((bio)->bi_opf >> BIO_OP_SHIFT)
    +#define bio_op(bio)    ((bio)->bi_opf & REQ_OP_MASK)
    
    Cc: Christoph Hellwig <hch@xxxxxx>
    Cc: Ming Lei <ming.lei@xxxxxxxxxx>
    Fixes: ef295ecf090d ("block: better op and flags encoding")
    Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
    Reviewed-by: Christoph Hellwig <hch@xxxxxx>
    Link: https://lore.kernel.org/r/20220511235152.1082246-1-bvanassche@xxxxxxx
    Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index be622b5a21ed..17c92c0f15b2 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -215,9 +215,8 @@ static inline void bio_issue_init(struct bio_issue *issue,
 struct bio {
 	struct bio		*bi_next;	/* request queue link */
 	struct block_device	*bi_bdev;
-	unsigned int		bi_opf;		/* bottom bits req flags,
-						 * top bits REQ_OP. Use
-						 * accessors.
+	unsigned int		bi_opf;		/* bottom bits REQ_OP, top bits
+						 * req_flags.
 						 */
 	unsigned short		bi_flags;	/* BIO_* below */
 	unsigned short		bi_ioprio;



[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