All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] tasklist lock
Date: Sat, 22 Mar 2025 11:14:06 +0100	[thread overview]
Message-ID: <20250322-kernel-tasklist-lock-38eaec7fea1e@brauner> (raw)

Hey Linus,

/* Summary */

According to the performance testbots this brings a 23% performance
increase when creating new processes:

- Reduce tasklist_lock hold time on exit.

  - Perform add_device_randomness() without tasklist_lock.

  - Perform free_pid() calls outside of tasklist_lock.

- Drop irq disablement around pidmap_lock.

- Add some tasklist_lock asserts.

- Call flush_sigqueue() lockless by changing release_task().

- Don't pointlessly clear __exit_signal()->clear_tsk_thread_flag(TIF_SIGPENDING).

/* Testing */

gcc version 14.2.0 (Debian 14.2.0-6)
Debian clang version 16.0.6 (27+b1)

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

  Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

  git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/kernel-6.15-rc1.tasklist_lock

for you to fetch changes up to 0a7713ac0d98d02f2c69145754c93715ab07b307:

  Merge patch series "reduce tasklist_lock hold time on exit and do some pid cleanup" (2025-02-07 11:22:44 +0100)

Please consider pulling these changes from the signed kernel-6.15-rc1.tasklist_lock tag.

Thanks!
Christian

----------------------------------------------------------------
kernel-6.15-rc1.tasklist_lock

----------------------------------------------------------------
Christian Brauner (2):
      Merge patch series "exit: change the release_task() paths to call flush_sigqueue() lockless"
      Merge patch series "reduce tasklist_lock hold time on exit and do some pid cleanup"

Mateusz Guzik (5):
      exit: perform add_device_randomness() without tasklist_lock
      exit: hoist get_pid() in release_task() outside of tasklist_lock
      pid: sprinkle tasklist_lock asserts
      pid: perform free_pid() calls outside of tasklist_lock
      pid: drop irq disablement around pidmap_lock

Oleg Nesterov (2):
      exit: change the release_task() paths to call flush_sigqueue() lockless
      exit: kill the pointless __exit_signal()->clear_tsk_thread_flag(TIF_SIGPENDING)

 include/linux/pid.h |  7 +++--
 kernel/exit.c       | 56 ++++++++++++++++++++++--------------
 kernel/pid.c        | 82 +++++++++++++++++++++++++++++------------------------
 kernel/sys.c        | 14 +++++----
 4 files changed, 93 insertions(+), 66 deletions(-)

             reply	other threads:[~2025-03-22 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-22 10:14 Christian Brauner [this message]
2025-03-24 21:01 ` [GIT PULL] tasklist lock 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=20250322-kernel-tasklist-lock-38eaec7fea1e@brauner \
    --to=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.