[PATCH v2 03/10] RapidIO: Use stored ingress port number instead of register read

Andrew Morton akpm at linux-foundation.org
Wed Sep 15 08:12:19 EST 2010


On Tue, 14 Sep 2010 10:59:16 -0400
Alexandre Bounine <alexandre.bounine at 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?


More information about the Linuxppc-dev mailing list