lkml.org 
[lkml]   [2012]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch 0/5] seqlock consolidation
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



\
 
 \ /
  Last update: 2012-03-15 12:47    [W:0.070 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site