From: Davidlohr Bueso <dave@stgolabs.net>
To: mingo@kernel.org, akpm@linux-foundation.org
Cc: peterz@infradead.org, torvalds@linux-foundation.org,
mark.rutland@arm.com, dave@stgolabs.net,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] current vs ptr to current dereferencing
Date: Tue, 3 Jan 2017 13:43:10 -0800 [thread overview]
Message-ID: <1483479794-14013-1-git-send-email-dave@stgolabs.net> (raw)
Hi,
This is a re-spin of the earlier rfc[1] wrt deleting the set_task_state()
interfaces. In order for us not taking a hit on arm64, these patches
depend on Mark's fix to get rid of read_sysreg():
http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476461.html
First three patches get rid of 'tsk = current' based assignments to
simply use current/get_current macro directly now that we have some
actual numbers -- in which the conversion does improve some performance
numbers, specially the locking bits. This is only around what directly
is touched by patch 4, making it very obvious that we are indeed calling
upon the current task. There are other users left with this pattern that
could be cleaned up later.
Applies against v4.10-rc2.
[1] https://lkml.org/lkml/2016/12/30/230
Thanks.
Davidlohr Bueso (4):
kernel/exit: Compute current directly
drivers/tty: Compute current directly
kernel/locking: Compute current directly
sched: Remove set_task_state()
arch/um/drivers/random.c | 2 +-
drivers/md/dm-bufio.c | 2 +-
drivers/md/dm-crypt.c | 4 ++--
drivers/md/persistent-data/dm-block-manager.c | 4 ++--
.../staging/lustre/lnet/libcfs/linux/linux-debug.c | 2 +-
drivers/tty/tty_ldsem.c | 18 +++++++--------
include/linux/sched.h | 27 +---------------------
kernel/exit.c | 22 +++++++++---------
kernel/locking/mutex.c | 19 ++++++++-------
kernel/locking/rwsem-spinlock.c | 18 ++++++---------
kernel/locking/rwsem-xadd.c | 7 +++---
kernel/locking/semaphore.c | 7 +++---
12 files changed, 49 insertions(+), 83 deletions(-)
--
2.6.6
next reply other threads:[~2017-01-03 21:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 21:43 Davidlohr Bueso [this message]
2017-01-03 21:43 ` [PATCH 1/4] kernel/exit: Compute current directly Davidlohr Bueso
2017-01-14 12:30 ` [tip:locking/core] kernel/exit: Compute 'current' directly tip-bot for Davidlohr Bueso
2017-01-03 21:43 ` [PATCH 2/4] drivers/tty: Compute current directly Davidlohr Bueso
2017-01-14 12:30 ` [tip:locking/core] drivers/tty: Compute 'current' directly tip-bot for Davidlohr Bueso
2017-01-03 21:43 ` [PATCH 3/4] kernel/locking: Compute current directly Davidlohr Bueso
2017-01-14 12:31 ` [tip:locking/core] kernel/locking: Compute 'current' directly tip-bot for Davidlohr Bueso
2017-01-03 21:43 ` [PATCH 4/4] sched: Remove set_task_state() Davidlohr Bueso
2017-01-14 12:31 ` [tip:locking/core] sched/core: " tip-bot for Davidlohr Bueso
2017-01-04 16:40 ` [PATCH 0/4] current vs ptr to current dereferencing Linus Torvalds
2017-01-05 11:42 ` Peter Zijlstra
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=1483479794-14013-1-git-send-email-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@kernel.org \
--cc=peterz@infradead.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.