linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 3/3 v2] sh: implement DMA_SLAVE capability in SH dmaengine
Date: Wed, 03 Feb 2010 00:36:48 +0000	[thread overview]
Message-ID: <4B68C520.5000607@intel.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1001190825120.4607@axis700.grange>

Dan Williams wrote:
> Guennadi Liakhovetski wrote:
>> Tested to work with a SIU ASoC driver on sh7722 (migor).
>>
>> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
>> ---
> [..]
>> +       /*
>> +        * Called under dma_list_mutex, take care to perform all slave channel
>> +        * ID manipulations under that lock.
>> +        */
> 
> Not that I think we will ever see scalability patches aimed at breaking 
> up the "big dma_list_mutex lock", but it makes me a bit uneasy that this 
> relies on an internal implementation detail of dmaengine.  Please add a 
> private lock here.
> 

...or perhaps change the comment to say that this relies on the 
guarantee from dmaengine that alloc_chan_resources never runs 
concurrently with itself or free_chan_resources.  Which is an externally 
visible guarantee of dmaengine.

--
Dan

      parent reply	other threads:[~2010-02-03  0:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19  7:27 [PATCH 3/3 v2] sh: implement DMA_SLAVE capability in SH dmaengine Guennadi Liakhovetski
2010-02-01 19:05 ` Guennadi Liakhovetski
2010-02-03  0:34 ` Dan Williams
2010-02-03  0:36 ` Dan Williams [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=4B68C520.5000607@intel.com \
    --to=dan.j.williams@intel.com \
    --cc=linux-sh@vger.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;
as well as URLs for NNTP newsgroup(s).