public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Nilay Shroff <nilay@linux.ibm.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-block@vger.kernel.org, ming.lei@redhat.com,
	dlemoal@kernel.org, hare@suse.de, axboe@kernel.dk,
	gjoyce@ibm.com
Subject: Re: [PATCH] block: protect debugfs attributes using q->elevator_lock
Date: Thu, 13 Mar 2025 17:18:17 +0530	[thread overview]
Message-ID: <c44eabfb-847a-41fd-9b63-37b64db141f9@linux.ibm.com> (raw)
In-Reply-To: <20250313075421.GA12286@lst.de>



On 3/13/25 1:24 PM, Christoph Hellwig wrote:
> On Wed, Mar 12, 2025 at 08:49:33PM +0530, Nilay Shroff wrote:
>>> really want this read system call interrupted by random signals, do
>>> we?  I guess this should be mutex_lock_killable.
>>>
>>> (and the same for the existing methods this is copy and pasted from).
>>>
>> I thought we wanted to interrupt using SIGINT (CTRL+C) in case user opens 
>> this file using cat. Maybe that's more convenient than sending SIGKILL. 
>> And yes I used mutex_lock_interruptible because for other attributes we are 
>> already using it. But if mutex_lock_killable is preferred then I'd change it
>> for all methods.
> 
> Let's leave it alone for this series.  While I think it's the wrong
> choice it's been there for a long time, so we might as well not change
> it now for unrelated reasons.
> 
Alright, then I will not replace mutex_lock_interruptible with 
mutex_lock_killable for this series. A next version of this 
series is on the way... 

Thanks,
--Nilay


      reply	other threads:[~2025-03-13 11:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12 10:28 [PATCH] block: protect debugfs attributes using q->elevator_lock Nilay Shroff
2025-03-12 10:51 ` Damien Le Moal
2025-03-12 11:03   ` Nilay Shroff
2025-03-12 11:08     ` Nilay Shroff
2025-03-12 14:12 ` Christoph Hellwig
2025-03-12 15:19   ` Nilay Shroff
2025-03-13  7:54     ` Christoph Hellwig
2025-03-13 11:48       ` 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=c44eabfb-847a-41fd-9b63-37b64db141f9@linux.ibm.com \
    --to=nilay@linux.ibm.com \
    --cc=axboe@kernel.dk \
    --cc=dlemoal@kernel.org \
    --cc=gjoyce@ibm.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@redhat.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