Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Damien Le Moal <dlemoal@kernel.org>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH 5.15.y] block: fix revalidate performance regression
Date: Wed, 7 Jun 2023 20:29:41 +0200	[thread overview]
Message-ID: <2023060735-joystick-ashamed-f686@gregkh> (raw)
In-Reply-To: <20230605231349.1326266-1-dlemoal@kernel.org>

On Tue, Jun 06, 2023 at 08:13:49AM +0900, Damien Le Moal wrote:
> commit 47fe1c3064c6bc1bfa3c032ff78e603e5dd6e5bc upstream.
> 
> The scsi driver function sd_read_block_characteristics() always calls
> blk_queue_set_zoned() to set a disk zoned model correctly, in case the
> device model changed. This is done even for regular disks to set the
> zoned model to BLK_ZONED_NONE and free any zone related resources if the
> drive previously was zoned.
> 
> This behavior significantly impact the time it takes to revalidate disks
> on a large system as the call to blk_queue_clear_zone_settings() done
> from blk_queue_set_zoned() for the BLK_ZONED_NONE case results in the
> device request queued to be frozen, even if there are no zone resources
> to free.
> 
> Avoid this overhead for non-zoned devices by not calling
> blk_queue_clear_zone_settings() in blk_queue_set_zoned() if the device
> model was already set to BLK_ZONED_NONE, which is always the case for
> regular devices.
> 
> Reported by: Brian Bunker <brian@purestorage.com>
> Fixes: 508aebb80527 ("block: introduce blk_queue_clear_zone_settings()")
> Cc: stable@vger.kernel.org
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> Reviewed-by: Ming Lei <ming.lei@redhat.com>
> Link: https://lore.kernel.org/r/20230529073237.1339862-1-dlemoal@kernel.org
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> ---
>  block/blk-settings.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, now queued up.

greg k-h

  reply	other threads:[~2023-06-07 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05 19:52 FAILED: patch "[PATCH] block: fix revalidate performance regression" failed to apply to 5.15-stable tree gregkh
2023-06-05 23:13 ` [PATCH 5.15.y] block: fix revalidate performance regression Damien Le Moal
2023-06-07 18:29   ` Greg KH [this message]
2023-06-05 23:14 ` FAILED: patch "[PATCH] block: fix revalidate performance regression" failed to apply to 5.15-stable tree Damien Le Moal

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=2023060735-joystick-ashamed-f686@gregkh \
    --to=greg@kroah.com \
    --cc=dlemoal@kernel.org \
    --cc=stable@vger.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: 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