Skip to content

seqlock consolidation

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5seqlock: Remove unused functionsinclude/linux/seqlock.h+0 -213 replies
2/5seqlock: Use seqcount for seqlockinclude/linux/seqlock.h+93 -830 replies
3/5seqlock: Provide seq_spin_* functionsinclude/linux/seqlock.h+66 -00 replies
4/5fs: fs_struct use seqlockfs/exec.c fs/fhandle.c fs/fs_struct.c +3 more+41 -530 replies
5/5fs: Use seqlock in struct dentryarch/powerpc/platforms/cell/spufs/inode.c drivers/infiniband/hw/ipath/ipath_fs.c drivers/infiniband/hw/qib/qib_fs.c +50 more+421 -4250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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