lkml.org 
[lkml]   [2010]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 03/10] RapidIO: Use stored ingress port number instead of register read
On Tue, 14 Sep 2010 10:59:16 -0400
Alexandre Bounine <alexandre.bounine@idt.com> wrote:

> @@ -219,6 +219,7 @@ struct rio_net {
> /**
> * struct rio_switch - RIO switch info
> * @node: Node in global list of switches
> + * @rdev: Associated RIO device structure
> * @switchid: Switch ID that is unique across a network
> * @hopcount: Hopcount to this switch
> * @destid: Associated destid in the path
> @@ -234,6 +235,7 @@ struct rio_net {
> */
> struct rio_switch {
> struct list_head node;
> + struct rio_dev *rdev;
> u16 switchid;
> u16 hopcount;
> u16 destid;

What is the locking for rdev? In other patches I see pointer chases
with no obvious locking against concurrent changes?


\
 
 \ /
  Last update: 2010-09-15 00:15    [W:0.142 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site