From f54a58c7d12e526c45cc70191e7ef57a2cb58371 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 12 Apr 2023 09:24:39 -0700 Subject: [PATCH] ANDROID: block: Prepare for preserving the zoned write order This patch does not change any functionality. This patch is a subset of the following patch that is expected to be merged upstream soon: https://lore.kernel.org/linux-block/20230407235822.1672286-3-bvanassche@acm.org/ Bug: 275581839 Bug: 277112517 Change-Id: I717d1c78233b92fd18297c81ef15335684da5d54 Signed-off-by: Bart Van Assche --- include/linux/blk-mq.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index a9764cbf7f8d..da9c4e5fb78e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -173,23 +173,19 @@ struct request { /* - * Three pointers are available for the IO schedulers, if they need - * more they have to dynamically allocate it. Flush requests are - * never put on the IO scheduler. So let the flush fields share - * space with the elevator data. + * Three pointers are available for IO schedulers. If they need + * more private data they have to allocate it dynamically. */ - union { - struct { - struct io_cq *icq; - void *priv[2]; - } elv; + struct { + struct io_cq *icq; + void *priv[2]; + } elv; - struct { - unsigned int seq; - struct list_head list; - rq_end_io_fn *saved_end_io; - } flush; - }; + struct { + unsigned int seq; + struct list_head list; + rq_end_io_fn *saved_end_io; + } flush; union { struct __call_single_data csd;