From: Tejun Heo <tj@kernel.org>
To: Kirill Tkhai <tkhai@yandex.ru>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata_port_wait_eh(): Change irqsave into unconditional closing of interrupts
Date: Thu, 26 Sep 2013 09:31:53 -0400 [thread overview]
Message-ID: <20130926133153.GA2480@htj.dyndns.org> (raw)
In-Reply-To: <1491380201679@web5j.yandex.ru>
Hello, Kirill.
On Thu, Sep 26, 2013 at 05:21:19PM +0400, Kirill Tkhai wrote:
> Hi,
>
> ata_port_wait_eh() uses spin_lock_irqsave() and this can confuse in fact
> that it is suitable to use in irqs_disabled() context. But we can't.
>
> (schedule() returns with interrupts enabled so it's possible
> ata_port_wait_eh() enters with disabled interrupts but returns with enabled)
>
> So, replace irqsave to unconditional closing of interrupts.
>
> I propose to consider to add patch like this. (If you don't have a magic
> with flags which is not obvious for me :)
Hmmm... yeah, this was Jeff's preference, at least way back, so libata
has a lot of spin_lock_irqsave()'s where spin_lock_irq() should do.
At this point, I don't really mind either way but if you wanna change
it can you please do a full sweep through libata? While I don't mind
either state too much, I do want them to be mostly consistent one way
or the other.
Thanks.
--
tejun
next prev parent reply other threads:[~2013-09-26 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 13:21 [PATCH] ata_port_wait_eh(): Change irqsave into unconditional closing of interrupts Kirill Tkhai
2013-09-26 13:31 ` Tejun Heo [this message]
2013-09-26 13:43 ` Kirill Tkhai
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=20130926133153.GA2480@htj.dyndns.org \
--to=tj@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=tkhai@yandex.ru \
/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