[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191015122720.GA20768@AlexGordeev-DPT-VI0092>
Date: Tue, 15 Oct 2019 14:27:20 +0200
From: Alexander Gordeev <a.gordeev.box@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: devel@...verdev.osuosl.org, Michael Chen <micchen@...era.com>,
dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface
for PCIe
On Tue, Oct 15, 2019 at 02:41:08PM +0300, Dan Carpenter wrote:
> > > > > > > > + spin_lock(lock);
> >
> > [*]
>
> [ snip ]
>
> > I struggle to realize how the spinlock I use (see [*] above) does not
> > protect the reader.
>
> Argh.... I'm really sorry. I completely didn't see the spinlock. :P
Np ;) May be in the next version it will be more visible.
I done it the way you asked ( even though I do not like it :D ):
spin_lock(&chan->vchan.lock);
> I am embarrassed. Wow...
>
> regards,
> dan carpenter
>
Powered by blists - more mailing lists