From b13efbc5c54c54abae1db63f029ac869454c2f44 Mon Sep 17 00:00:00 2001 From: LongPing Wei Date: Wed, 8 May 2024 11:58:12 +0800 Subject: [PATCH] ANDROID: GKI: Add ANDROID_OEM_DATA(1) in struct request to support pre-read feature. To implement the foreshow list in the kernel, we need to incorporate additional flags into the request. However, the rq_flags field currently has only 5 remaining bits. Considering the potential future usage by Android or upstream, we propose the addition of an OEM data field to prevent conflicts down the line. Bug: 339338545 Change-Id: I965450a06a365b53ae82d11bd678983c6c286f1a Signed-off-by: LongPing Wei (cherry picked from commit 943f2856e40751d7971de33b6d75c7a23df7139d) --- include/linux/blk-mq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index c5063e0a38a0..209cc6ba2b5f 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -208,6 +208,8 @@ struct request { */ rq_end_io_fn *end_io; void *end_io_data; + + ANDROID_OEM_DATA(1); }; static inline enum req_op req_op(const struct request *req)