public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Nilay Shroff <nilay@linux.ibm.com>
To: Ming Lei <ming.lei@redhat.com>
Cc: Bart Van Assche <bvanassche@acm.org>,
	Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
	Martin Wilck <mwilck@suse.com>,
	Benjamin Marzinski <bmarzins@redhat.com>,
	stable@vger.kernel.org, Damien Le Moal <dlemoal@kernel.org>,
	Chaitanya Kulkarni <kch@nvidia.com>,
	Hannes Reinecke <hare@suse.de>
Subject: Re: [PATCH v3] block: Remove queue freezing from several sysfs store callbacks
Date: Mon, 3 Nov 2025 10:44:37 +0530	[thread overview]
Message-ID: <2cb14486-c4f7-4c85-8d84-890e668e338c@linux.ibm.com> (raw)
In-Reply-To: <CAFj5m9+-13UHPTKToWyskQ5XGiEFEEBFjgQzkkuDa=VBKvF7zQ@mail.gmail.com>



On 11/3/25 9:42 AM, Ming Lei wrote:
> On Fri, Oct 31, 2025 at 8:40 PM Nilay Shroff <nilay@linux.ibm.com> wrote:
>>
>>
>>
>> On 10/30/25 10:54 PM, Bart Van Assche wrote:
>>> Fix this by removing the blk_mq_freeze_queue() / blk_mq_unfreeze_queue()
>>> calls from the store callbacks that do not strictly need these callbacks.
>>> This patch may cause a small delay in applying the new settings.
>>>
>>> This patch affects the following sysfs attributes:
>>> * io_poll_delay
>>> * io_timeout
>>> * nomerges
>>> * read_ahead_kb
>>> * rq_affinity
>>
>> I see that io_timeout, nomerges and rq_affinity are all accessed
>> during I/O hotpath. So IMO for these attributes we still need to
>> freeze the queue before updating those parameters. The io_timeout
>> and nomerges are accessed during I/O submission and rq_affinity
>> is accessed during I/O completion.
> 
> Does freeze make any difference? Intermediate value isn't possible, and
> either the old or new value should be just fine to take.
> 
Yes it doesn't affect the I/O and so if we remove freeze/unfreeze 
calls for these attributes then we may still need to annotate 
it with data_race and/or READ_ONCE as Christoph mentioned in another 
thread. I saw that nomerges and rq_affinity already uses atomic
bitmap and so we may still need to annotate io_timeout.

Thanks,
--Nilay


      reply	other threads:[~2025-11-03  5:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-30 17:24 [PATCH v3] block: Remove queue freezing from several sysfs store callbacks Bart Van Assche
2025-10-30 17:38 ` Martin Wilck
2025-10-30 18:08   ` Bart Van Assche
2025-10-31  9:59 ` Christoph Hellwig
2025-10-31 12:39 ` Nilay Shroff
2025-10-31 15:47   ` Bart Van Assche
2025-11-03  4:12   ` Ming Lei
2025-11-03  5:14     ` Nilay Shroff [this message]

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=2cb14486-c4f7-4c85-8d84-890e668e338c@linux.ibm.com \
    --to=nilay@linux.ibm.com \
    --cc=axboe@kernel.dk \
    --cc=bmarzins@redhat.com \
    --cc=bvanassche@acm.org \
    --cc=dlemoal@kernel.org \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=kch@nvidia.com \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=mwilck@suse.com \
    --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