LKML Archive on lore.kernel.org
 help / color / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [GIT pull] locking/urgent for 5.9-rc1
Date: Mon, 10 Aug 2020 19:01:34 -0000
Message-ID: <159708609435.2571.13948681727529247231.tglx@nanos> (raw)

Linus,

please pull the latest locking/urgent branch from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2020-08-10

up to:  0cd39f4600ed: locking/seqlock, headers: Untangle the spaghetti monster

A set of locking fixes and updates:

  - Untangle the header spaghetti which causes build failures in various
    situations caused by the lockdep additions to seqcount to validate that
    the write side critical sections are non-preemptible.

  - The seqcount associated lock debug addons which were blocked by the
    above fallout.

    seqcount writers contrary to seqlock writers must be externally
    serialized, which usually happens via locking - except for strict per
    CPU seqcounts. As the lock is not part of the seqcount, lockdep cannot
    validate that the lock is held.

    This new debug mechanism adds the concept of associated locks.
    sequence count has now lock type variants and corresponding
    initializers which take a pointer to the associated lock used for
    writer serialization. If lockdep is enabled the pointer is stored and
    write_seqcount_begin() has a lockdep assertion to validate that the
    lock is held.

    Aside of the type and the initializer no other code changes are
    required at the seqcount usage sites. The rest of the seqcount API is
    unchanged and determines the type at compile time with the help of
    _Generic which is possible now that the minimal GCC version has been
    moved up.

    Adding this lockdep coverage unearthed a handful of seqcount bugs which
    have been addressed already independent of this.

    While generaly useful this comes with a Trojan Horse twist: On RT
    kernels the write side critical section can become preemtible if the
    writers are serialized by an associated lock, which leads to the well
    known reader preempts writer livelock. RT prevents this by storing the
    associated lock pointer independent of lockdep in the seqcount and
    changing the reader side to block on the lock when a reader detects
    that a writer is in the write side critical section.

 - Conversion of seqcount usage sites to associated types and initializers.

Thanks,

	tglx

------------------>
Ahmed S. Darwish (16):
      seqlock: Extend seqcount API with associated locks
      seqlock: Align multi-line macros newline escapes at 72 columns
      dma-buf: Remove custom seqcount lockdep class key
      dma-buf: Use sequence counter with associated wound/wait mutex
      sched: tasks: Use sequence counter with associated spinlock
      netfilter: conntrack: Use sequence counter with associated spinlock
      netfilter: nft_set_rbtree: Use sequence counter with associated rwlock
      xfrm: policy: Use sequence counters with associated lock
      timekeeping: Use sequence counter with associated raw spinlock
      vfs: Use sequence counter with associated spinlock
      raid5: Use sequence counter with associated spinlock
      iocost: Use sequence counter with associated spinlock
      NFSv4: Use sequence counter with associated spinlock
      userfaultfd: Use sequence counter with associated spinlock
      kvm/eventfd: Use sequence counter with associated spinlock
      hrtimer: Use sequence counter with associated raw spinlock

Chris Wilson (1):
      locking/lockdep: Fix overflow in presentation of average lock-time

Ingo Molnar (1):
      x86/headers: Remove APIC headers from <asm/smp.h>

Peter Zijlstra (7):
      seqlock: s/__SEQ_LOCKDEP/__SEQ_LOCK/g
      seqlock: Fold seqcount_LOCKNAME_t definition
      seqlock: Fold seqcount_LOCKNAME_init() definition
      seqcount: Compress SEQCNT_LOCKNAME_ZERO()
      seqcount: More consistent seqprop names
      locking, arch/ia64: Reduce <asm/smp.h> header dependencies by moving XTP bits into the new <asm/xtp.h> header
      locking/seqlock, headers: Untangle the spaghetti monster




             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 19:01 Thomas Gleixner [this message]
2020-08-11  2:28 ` pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=159708609435.2571.13948681727529247231.tglx@nanos \
    --to=tglx@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git
	git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git