diff mbox series

block: Move tag field position in struct request

Message ID 20190428074803.19484-1-minwoo.im.dev@gmail.com (mailing list archive)
State New, archived
Headers show
Series block: Move tag field position in struct request | expand

Commit Message

Minwoo Im April 28, 2019, 7:48 a.m. UTC
__data_len and __sector are internal fields which should not be accessed
directly in driver-level like the comment above it. But, tag field can
be accessed by driver level directly so that we need to make the comment
right by moving it to some other place.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
---
 include/linux/blkdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig April 28, 2019, 12:03 p.m. UTC | #1
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Chaitanya Kulkarni April 29, 2019, 3:16 a.m. UTC | #2
If Jens is okay with this change then :-

Reviewed-by : Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>.

On 4/28/19 12:48 AM, Minwoo Im wrote:
> __data_len and __sector are internal fields which should not be accessed
> directly in driver-level like the comment above it. But, tag field can
> be accessed by driver level directly so that we need to make the comment
> right by moving it to some other place.
> 
> Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
> ---
>   include/linux/blkdev.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
> index 317ab30d2904..639ca948d644 100644
> --- a/include/linux/blkdev.h
> +++ b/include/linux/blkdev.h
> @@ -137,11 +137,11 @@ struct request {
>   	unsigned int cmd_flags;		/* op and common flags */
>   	req_flags_t rq_flags;
>   
> +	int tag;
>   	int internal_tag;
>   
>   	/* the following two fields are internal, NEVER access directly */
>   	unsigned int __data_len;	/* total data len */
> -	int tag;
>   	sector_t __sector;		/* sector cursor */
>   
>   	struct bio *bio;
>
Minwoo Im May 13, 2019, 4:55 p.m. UTC | #3
On 19-04-28 16:48:03, Minwoo Im wrote:
> __data_len and __sector are internal fields which should not be accessed
> directly in driver-level like the comment above it. But, tag field can
> be accessed by driver level directly so that we need to make the comment
> right by moving it to some other place.
> 
> Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>

Ping here :)
diff mbox series

Patch

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 317ab30d2904..639ca948d644 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -137,11 +137,11 @@  struct request {
 	unsigned int cmd_flags;		/* op and common flags */
 	req_flags_t rq_flags;
 
+	int tag;
 	int internal_tag;
 
 	/* the following two fields are internal, NEVER access directly */
 	unsigned int __data_len;	/* total data len */
-	int tag;
 	sector_t __sector;		/* sector cursor */
 
 	struct bio *bio;