LWN.net Logo

seqlock consolidation

From:  Thomas Gleixner <tglx@linutronix.de>
To:  LKML <linux-kernel@vger.kernel.org>
Subject:  [patch 0/5] seqlock consolidation
Date:  Thu, 15 Mar 2012 11:44:22 -0000
Message-ID:  <20120314170736.617746873@linutronix.de>
Cc:  Al Viro <viro@zeniv.linux.org.uk>, Linus Torvalds <torvalds@osdl.org>, Ingo Molnar <mingo@elte.hu>, Peter Zijlstra <peterz@infradead.org>, Nick Piggin <npiggin@kernel.dk>
Archive-link:  Article, Thread

This series consists of two parts:

     1) Consolidate seqlocks and seqcount instead of having two
     	implementations for the counter functionality

     2) Extend seqlocks API and convert the open coded seqlocks
     	in fs_struct and dentry to that.

The main motivation of this change is to get rid of open coded
seqlocks as they are difficult to handle in the real time patch,
because the retry loops can cause live locks there, when the writer
side gets preempted. RT needs to take the lock so the writer gets
boosted and out of the way. With open coded seqlocks consisting of a
spinlock and a seqcount we have no idea which lock to acquire.

Aside of that replacing open coded constructs with proper functions is
a worthwhile cleanup by itself.

Thanks,

	tglx

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

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds