[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200917094615.GI7347@quack2.suse.cz>
Date: Thu, 17 Sep 2020 11:46:15 +0200
From: Jan Kara <jack@...e.cz>
To: Christoph Hellwig <hch@....de>
Cc: Jens Axboe <axboe@...nel.dk>, Song Liu <song@...nel.org>,
Hans de Goede <hdegoede@...hat.com>,
Richard Weinberger <richard@....at>,
Minchan Kim <minchan@...nel.org>,
linux-mtd@...ts.infradead.org, dm-devel@...hat.com,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
drbd-dev@...ts.linbit.com, linux-raid@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
cgroups@...r.kernel.org
Subject: Re: [PATCH 02/12] drbd: remove dead code in device_to_statistics
On Thu 10-09-20 16:48:22, Christoph Hellwig wrote:
> Ever since the switch to blk-mq, a lower device not used for VM
> writeback will not be marked congested, so the check will never
> trigger.
>
> Signed-off-by: Christoph Hellwig <hch@....de>
Looks good to me. You can add:
Reviewed-by: Jan Kara <jack@...e.cz>
Honza
> ---
> drivers/block/drbd/drbd_nl.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
> index 43c8ae4d9fca81..aaff5bde391506 100644
> --- a/drivers/block/drbd/drbd_nl.c
> +++ b/drivers/block/drbd/drbd_nl.c
> @@ -3370,7 +3370,6 @@ static void device_to_statistics(struct device_statistics *s,
> if (get_ldev(device)) {
> struct drbd_md *md = &device->ldev->md;
> u64 *history_uuids = (u64 *)s->history_uuids;
> - struct request_queue *q;
> int n;
>
> spin_lock_irq(&md->uuid_lock);
> @@ -3384,11 +3383,6 @@ static void device_to_statistics(struct device_statistics *s,
> spin_unlock_irq(&md->uuid_lock);
>
> s->dev_disk_flags = md->flags;
> - q = bdev_get_queue(device->ldev->backing_bdev);
> - s->dev_lower_blocked =
> - bdi_congested(q->backing_dev_info,
> - (1 << WB_async_congested) |
> - (1 << WB_sync_congested));
> put_ldev(device);
> }
> s->dev_size = drbd_get_capacity(device->this_bdev);
> --
> 2.28.0
>
--
Jan Kara <jack@...e.com>
SUSE Labs, CR
Powered by blists - more mailing lists