public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] blk-mq: change bio_set_ioprio to inline
@ 2022-08-30  9:45 Liu Song
  2022-08-30 12:48 ` Chaitanya Kulkarni
  2022-08-30 13:59 ` Jens Axboe
  0 siblings, 2 replies; 7+ messages in thread
From: Liu Song @ 2022-08-30  9:45 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel

From: Liu Song <liusong@linux.alibaba.com>

Change "bio_set_ioprio" to inline to avoid calling overhead.

Signed-off-by: Liu Song <liusong@linux.alibaba.com>
---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-mq.c b/block/blk-mq.c
index c96c8c4..a17bc83 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2766,7 +2766,7 @@ static inline struct request *blk_mq_get_cached_request(struct request_queue *q,
 	return rq;
 }
 
-static void bio_set_ioprio(struct bio *bio)
+static inline void bio_set_ioprio(struct bio *bio)
 {
 	/* Nobody set ioprio so far? Initialize it based on task's nice value */
 	if (IOPRIO_PRIO_CLASS(bio->bi_ioprio) == IOPRIO_CLASS_NONE)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-31  1:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30  9:45 [RFC PATCH] blk-mq: change bio_set_ioprio to inline Liu Song
2022-08-30 12:48 ` Chaitanya Kulkarni
2022-08-31  0:48   ` Liu Song
2022-08-30 13:59 ` Jens Axboe
2022-08-31  0:42   ` Liu Song
2022-08-31  0:59     ` Jens Axboe
2022-08-31  1:22       ` Liu Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox