From: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> To: tj@kernel.org, axboe@kernel.dk Cc: cgroups@vger.kernel.org, linux-block@vger.kernel.org, Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Subject: [PATCH 3/4] blk-wbt: remove wbt_update_limits Date: Sat, 9 May 2020 00:00:14 +0200 [thread overview] Message-ID: <20200508220015.11528-4-guoqing.jiang@cloud.ionos.com> (raw) In-Reply-To: <20200508220015.11528-1-guoqing.jiang@cloud.ionos.com> No one call this function after commit 2af2783f2ea4f ("rq-qos: get rid of redundant wbt_update_limits()"), so remove it. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> --- block/blk-wbt.c | 8 -------- block/blk-wbt.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 9cb082f38b93..78bb624cce53 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -418,14 +418,6 @@ static void __wbt_update_limits(struct rq_wb *rwb) rwb_wake_all(rwb); } -void wbt_update_limits(struct request_queue *q) -{ - struct rq_qos *rqos = wbt_rq_qos(q); - if (!rqos) - return; - __wbt_update_limits(RQWB(rqos)); -} - u64 wbt_get_min_lat(struct request_queue *q) { struct rq_qos *rqos = wbt_rq_qos(q); diff --git a/block/blk-wbt.h b/block/blk-wbt.h index 8e4e37660971..16bdc85b8df9 100644 --- a/block/blk-wbt.h +++ b/block/blk-wbt.h @@ -88,7 +88,6 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb) #ifdef CONFIG_BLK_WBT int wbt_init(struct request_queue *); -void wbt_update_limits(struct request_queue *); void wbt_disable_default(struct request_queue *); void wbt_enable_default(struct request_queue *); @@ -108,9 +107,6 @@ static inline int wbt_init(struct request_queue *q) { return -EINVAL; } -static inline void wbt_update_limits(struct request_queue *q) -{ -} static inline void wbt_disable_default(struct request_queue *q) { } -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Guoqing Jiang <guoqing.jiang-8+5b1tb3oTXfrHaScsAUWw@public.gmane.org> To: tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-block-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Guoqing Jiang <guoqing.jiang-8+5b1tb3oTXfrHaScsAUWw@public.gmane.org> Subject: [PATCH 3/4] blk-wbt: remove wbt_update_limits Date: Sat, 9 May 2020 00:00:14 +0200 [thread overview] Message-ID: <20200508220015.11528-4-guoqing.jiang@cloud.ionos.com> (raw) In-Reply-To: <20200508220015.11528-1-guoqing.jiang-8+5b1tb3oTXfrHaScsAUWw@public.gmane.org> No one call this function after commit 2af2783f2ea4f ("rq-qos: get rid of redundant wbt_update_limits()"), so remove it. Signed-off-by: Guoqing Jiang <guoqing.jiang-8+5b1tb3oTXfrHaScsAUWw@public.gmane.org> --- block/blk-wbt.c | 8 -------- block/blk-wbt.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 9cb082f38b93..78bb624cce53 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -418,14 +418,6 @@ static void __wbt_update_limits(struct rq_wb *rwb) rwb_wake_all(rwb); } -void wbt_update_limits(struct request_queue *q) -{ - struct rq_qos *rqos = wbt_rq_qos(q); - if (!rqos) - return; - __wbt_update_limits(RQWB(rqos)); -} - u64 wbt_get_min_lat(struct request_queue *q) { struct rq_qos *rqos = wbt_rq_qos(q); diff --git a/block/blk-wbt.h b/block/blk-wbt.h index 8e4e37660971..16bdc85b8df9 100644 --- a/block/blk-wbt.h +++ b/block/blk-wbt.h @@ -88,7 +88,6 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb) #ifdef CONFIG_BLK_WBT int wbt_init(struct request_queue *); -void wbt_update_limits(struct request_queue *); void wbt_disable_default(struct request_queue *); void wbt_enable_default(struct request_queue *); @@ -108,9 +107,6 @@ static inline int wbt_init(struct request_queue *q) { return -EINVAL; } -static inline void wbt_update_limits(struct request_queue *q) -{ -} static inline void wbt_disable_default(struct request_queue *q) { } -- 2.17.1
next prev parent reply other threads:[~2020-05-08 22:00 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-08 22:00 [PATCH 0/4] cleanup for blk-wbt and blk-throttle Guoqing Jiang 2020-05-08 22:00 ` Guoqing Jiang 2020-05-08 22:00 ` [PATCH 1/4] blk-throttle: remove blk_throtl_drain Guoqing Jiang 2020-05-08 22:00 ` Guoqing Jiang 2020-05-08 22:00 ` [PATCH 2/4] blk-throttle: remove tg_drain_bios Guoqing Jiang 2020-05-08 22:00 ` Guoqing Jiang [this message] 2020-05-08 22:00 ` [PATCH 3/4] blk-wbt: remove wbt_update_limits Guoqing Jiang 2020-05-08 22:00 ` [PATCH 4/4] blk-wbt: rename __wbt_update_limits to wbt_update_limits Guoqing Jiang 2020-05-29 21:55 ` [PATCH 0/4] cleanup for blk-wbt and blk-throttle Guoqing Jiang 2020-05-29 21:55 ` Guoqing Jiang 2020-05-29 22:31 ` Jens Axboe 2020-05-29 22:31 ` Jens Axboe
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200508220015.11528-4-guoqing.jiang@cloud.ionos.com \ --to=guoqing.jiang@cloud.ionos.com \ --cc=axboe@kernel.dk \ --cc=cgroups@vger.kernel.org \ --cc=linux-block@vger.kernel.org \ --cc=tj@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.