lkml.org 
[lkml]   [2012]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] firewire: remove global lock around address handlers, convert to RCU
On Fri, 2012-09-28 at 05:38 -0400, Stefan Richter wrote:
> On Sep 27 Stefan Richter wrote:
> > --- a/drivers/firewire/core-transaction.c
> > +++ b/drivers/firewire/core-transaction.c
> > @@ -489,7 +489,7 @@ static struct fw_address_handler *lookup
> > {
> > struct fw_address_handler *handler;
> >
> > - list_for_each_entry(handler, list, link) {
> > + list_for_each_entry_rcu(handler, list, link) {
> > if (handler->offset < offset + length &&
> > offset < handler->offset + handler->length)
> > return handler;
> [...]
>
> I will add an #include <linux/rculist.h> to core-transaction.c.

Thanks Stefan. Apologies for missing that.

Peter Hurley


\
 
 \ /
  Last update: 2012-09-28 19:21    [W:0.054 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site