Re: [ RT PATCH] seqlock: serialize against writers

From: Steven Rostedt
Date: Fri Aug 29 2008 - 13:03:33 EST



/me adds "RT" to subject.

On Fri, 29 Aug 2008, Stephen Hemminger wrote:
>
> I have mixed feelings about this. The point of this primitive was for
> cases where write contention was rare and writers only did small updates.
> So what you did was fix the primitive for cases where it is being misused.
> Do you have a real example where this is a problem? If so then the
> user of seqlock should be fixed, rather than fixing seqlock.
>


I think there's some confusion here, because of the changes to raw. The
raw_seqlock_t and mainline seqlock_t has no issue, and should not be
touched.

What Gregory is solving is an issue in -rt where we let write seqlocks be
preempted. Thus this causes issues with determinism. This is a special
case for -rt, and -rt only. It should not affect mainline in anyway.

Sorry for the noise.

-- Steve

--
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/