From: Eric Biggers <ebiggers@kernel.org>
To: Yu Kuai <yukuai3@huawei.com>
Cc: jack@suse.cz, paolo.valente@linaro.org, axboe@kernel.dk,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
yukuai1@huaweicloud.com, yi.zhang@huawei.com
Subject: Re: [PATCH v3 5/5] elevator: remove redundant code in elv_unregister_queue()
Date: Thu, 22 Sep 2022 20:37:08 -0700 [thread overview]
Message-ID: <Yy0p5O36yrnYCgH4@sol.localdomain> (raw)
In-Reply-To: <20220922113558.1085314-6-yukuai3@huawei.com>
On Thu, Sep 22, 2022 at 07:35:58PM +0800, Yu Kuai wrote:
> "elevator_queue *e" is already declared and initialized in the beginning
> of elv_unregister_queue().
>
> Signed-off-by: Yu Kuai <yukuai3@huawei.com>
> ---
> block/elevator.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/block/elevator.c b/block/elevator.c
> index 7cb61820cfa0..0a72d6fbbdcc 100644
> --- a/block/elevator.c
> +++ b/block/elevator.c
> @@ -524,8 +524,6 @@ void elv_unregister_queue(struct request_queue *q)
> lockdep_assert_held(&q->sysfs_lock);
>
> if (e && test_and_clear_bit(ELEVATOR_FLAG_REGISTERED, &e->flags)) {
> - struct elevator_queue *e = q->elevator;
> -
> kobject_uevent(&e->kobj, KOBJ_REMOVE);
> kobject_del(&e->kobj);
> }
> --
Reviewed-by: Eric Biggers <ebiggers@google.com>
- Eric
next prev parent reply other threads:[~2022-09-23 3:37 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 11:35 [PATCH v3 0/5] blk-wbt: simple improvment to enable wbt correctly Yu Kuai
2022-09-22 11:35 ` [PATCH v3 1/5] wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabled Yu Kuai
2022-09-26 9:44 ` Jan Kara
2022-09-26 10:25 ` Yu Kuai
2022-09-26 11:47 ` Jan Kara
2022-09-26 13:01 ` Yu Kuai
2022-09-22 11:35 ` [PATCH v3 2/5] elevator: add new field flags in struct elevator_queue Yu Kuai
2022-09-22 11:35 ` [PATCH v3 3/5] block, bfq: don't disable wbt if CONFIG_BFQ_GROUP_IOSCHED is disabled Yu Kuai
2022-09-23 8:56 ` Christoph Hellwig
2022-09-23 9:50 ` Yu Kuai
2022-09-23 10:06 ` Jan Kara
2022-09-23 10:23 ` Yu Kuai
2022-09-23 11:03 ` Jan Kara
2022-09-23 11:32 ` Yu Kuai
2022-09-26 13:00 ` Yu Kuai
2022-09-26 14:22 ` Jan Kara
2022-09-27 1:02 ` Yu Kuai
2022-09-27 16:14 ` Paolo Valente
2022-09-28 3:30 ` Yu Kuai
2022-09-22 11:35 ` [PATCH v3 4/5] blk-wbt: don't enable throttling if default elevator is bfq Yu Kuai
2022-09-22 11:35 ` [PATCH v3 5/5] elevator: remove redundant code in elv_unregister_queue() Yu Kuai
2022-09-23 3:37 ` Eric Biggers [this message]
2022-09-23 8:53 ` Christoph Hellwig
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=Yy0p5O36yrnYCgH4@sol.localdomain \
--to=ebiggers@kernel.org \
--cc=axboe@kernel.dk \
--cc=jack@suse.cz \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paolo.valente@linaro.org \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox