Go to file
Jens Axboe 91989c7078 task_work: cleanup notification modes
A previous commit changed the notification mode from true/false to an
int, allowing notify-no, notify-yes, or signal-notify. This was
backwards compatible in the sense that any existing true/false user
would translate to either 0 (on notification sent) or 1, the latter
which mapped to TWA_RESUME. TWA_SIGNAL was assigned a value of 2.

Clean this up properly, and define a proper enum for the notification
mode. Now we have:

- TWA_NONE. This is 0, same as before the original change, meaning no
  notification requested.
- TWA_RESUME. This is 1, same as before the original change, meaning
  that we use TIF_NOTIFY_RESUME.
- TWA_SIGNAL. This uses TIF_SIGPENDING/JOBCTL_TASK_WORK for the
  notification.

Clean up all the callers, switching their 0/1/false/true to using the
appropriate TWA_* mode for notifications.

Fixes: e91b481623 ("task_work: teach task_work_add() to do signal_wake_up()")
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-10-17 15:05:30 -06:00
arch task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
block docs: bio: fix a kerneldoc markup 2020-10-15 07:49:48 +02:00
certs
crypto drivers-5.10-2020-10-12 2020-10-13 13:04:41 -07:00
Documentation overlayfs update for 5.10 2020-10-16 15:29:46 -07:00
drivers task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
fs task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
include task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
init networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
ipc
kernel task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
lib kgdb patches for 5.10-rc1 2020-10-16 12:47:18 -07:00
LICENSES
mm mm: use limited read-ahead to satisfy read 2020-10-17 13:49:08 -06:00
net networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
samples networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
scripts docs updates for v5.10-rc1 2020-10-16 15:02:21 -07:00
security task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
sound dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
tools powerpc updates for 5.10 2020-10-16 12:21:15 -07:00
usr
virt
.clang-format memblock: use separate iterators for memory and reserved regions 2020-10-13 18:38:35 -07:00
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap MAINTAINERS: jarkko.sakkinen@linux.intel.com -> jarkko@kernel.org 2020-10-16 11:11:19 -07:00
COPYING
CREDITS networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
Kbuild
Kconfig
MAINTAINERS docs updates for v5.10-rc1 2020-10-16 15:02:21 -07:00
Makefile networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.