From: Ingo Molnar <mingo@kernel.org>
To: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: peterz@infradead.org, mingo@redhat.com, will@kernel.org,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] kernel/locking: make __down_common use flags previously saved
Date: Wed, 12 May 2021 21:09:34 +0200 [thread overview]
Message-ID: <YJwn7qb3/ekFBWDF@gmail.com> (raw)
In-Reply-To: <20210424142823.3896-1-42.hyeyoo@gmail.com>
* Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote:
> down, down_interruptible, down_killable, and down_timeout
> call raw_spin_lock_irqsave that saves current status to flags.
>
> but in __down_common, that is called by functions above, calls
> raw_spin_lock_irq and raw_spin_unlock_irq regardless of flags previously saved.
Yes, this is intentional, because if we get into __down_common() we have to
schedule, so we have to enable interrupts.
> this mismatch can potentially cause problem.
What problems?
Thanks,
Ingo
next prev parent reply other threads:[~2021-05-12 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-24 14:28 [PATCH] kernel/locking: make __down_common use flags previously saved Hyeonggon Yoo
2021-05-11 2:23 ` Hyeonggon Yoo
2021-05-12 19:09 ` Ingo Molnar [this message]
2021-05-17 14:36 ` Hyeonggon Yoo
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=YJwn7qb3/ekFBWDF@gmail.com \
--to=mingo@kernel.org \
--cc=42.hyeyoo@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=will@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