|
@@ -85,7 +85,7 @@ static DECLARE_RWSEM(snd_pcm_link_rwsem);
|
|
void snd_pcm_stream_lock(struct snd_pcm_substream *substream)
|
|
void snd_pcm_stream_lock(struct snd_pcm_substream *substream)
|
|
{
|
|
{
|
|
if (substream->pcm->nonatomic) {
|
|
if (substream->pcm->nonatomic) {
|
|
- down_read(&snd_pcm_link_rwsem);
|
|
|
|
|
|
+ down_read_nested(&snd_pcm_link_rwsem, SINGLE_DEPTH_NESTING);
|
|
mutex_lock(&substream->self_group.mutex);
|
|
mutex_lock(&substream->self_group.mutex);
|
|
} else {
|
|
} else {
|
|
read_lock(&snd_pcm_link_rwlock);
|
|
read_lock(&snd_pcm_link_rwlock);
|