Re: [PATCH 001 of 5] md: Split disks array out of raid5 conf structure so it is easier to grow.

From: Neil Brown
Date: Sun Jan 22 2006 - 17:55:38 EST


On Friday January 20, john@xxxxxxxxxxx wrote:
> Though now that I look at it, don't we have a circular reference
> here? Let me quote the code section, which starts of with where I was
> confused:
..
>
> Now we seem to end up with:
>
> mddev->private = conf;
> conf->mddev = mddev;
>

This is simply to related structures each holding a reference to the
other. It's like the child pointing to the parent, and the parent
pointing to the child, which you get all the time.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/