From: Alan Young <Alan.Young@IEE.org>
To: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@alsa-project.org
Subject: Re: Locking/mutex for snd_pcm_update_hw_ptr0() call
Date: Mon, 7 Nov 2016 14:56:00 +0000 [thread overview]
Message-ID: <58209600.1090908@IEE.org> (raw)
In-Reply-To: <6a229803-cfe2-81b0-d873-902831e3314d@ladisch.de>
On 07/11/16 14:15, Clemens Ladisch wrote:
> Alan Young wrote:
>> It is possible that the DMA interrupt handler could call
>> snd_pcm_update_hw_ptr0() while it is part way through a call
>> from snd_pcm_status(), or vice versa?
> The *lock_irq* functions disable interrupts on the current CPU.
>
>
But only on the current CPU? So that would imply that multiple threads
could execute snd_pcm_update_hw_ptr0() simultaneously on multi-CPU systems.
Even on a single-CPU system, I presume that the interrupt handler cannot
be pre-empted by a user-space call such as snd_pcm_status(). Is that
correct?
Alan.
next prev parent reply other threads:[~2016-11-07 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-07 12:53 Locking/mutex for snd_pcm_update_hw_ptr0() call Alan Young
2016-11-07 14:15 ` Clemens Ladisch
2016-11-07 14:56 ` Alan Young [this message]
2016-11-07 15:40 ` Clemens Ladisch
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=58209600.1090908@IEE.org \
--to=alan.young@iee.org \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.