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
..
2020-09-30 16:37:39 +02:00
2020-10-12 10:06:39 +02:00
2020-08-24 10:33:08 +02:00
2020-08-12 10:57:59 -07:00
2020-09-20 19:01:34 -07:00
2020-08-05 11:43:47 -07:00
2020-10-15 18:42:13 -07:00
2020-09-14 10:54:42 +02:00
2020-10-15 09:46:23 -07:00
2020-10-15 07:57:55 +02:00
2020-08-12 10:57:59 -07:00
2020-08-07 12:58:11 -07:00
2020-08-27 06:55:50 -07:00
2020-10-15 09:46:23 -07:00
2020-10-12 15:37:45 -07:00
2020-09-07 09:16:31 +02:00
2020-08-07 08:54:16 +02:00
2020-09-09 11:21:19 -07:00
2020-08-27 06:55:50 -07:00
2020-09-28 14:53:45 +01:00
2020-09-16 17:38:02 +05:30
2020-10-15 18:42:13 -07:00
2020-09-22 16:45:34 -07:00
2020-09-21 17:43:47 +01:00
2020-10-16 11:11:22 -07:00
2020-10-14 12:08:34 -07:00
2020-09-23 15:29:29 +05:30
2020-08-28 12:08:08 +02:00
2020-09-11 14:39:15 +10:00
2020-10-16 15:02:21 -07:00
2020-10-14 11:42:04 -07:00
2020-09-12 10:45:56 -07:00
2020-09-17 19:21:16 +02:00
2020-10-08 17:17:27 +02:00
2020-08-03 19:30:59 -07:00
2020-09-24 16:44:44 -07:00
2020-09-24 13:43:39 -06:00
2020-08-17 13:47:28 +02:00
2020-10-13 11:37:11 +02:00
2020-08-10 12:16:51 -07:00
2020-10-16 11:11:20 -07:00
2020-10-13 12:12:44 -07:00
2020-10-05 10:47:43 -06:00
2020-09-03 15:20:47 -06:00
2020-10-16 11:11:19 -07:00
2020-08-25 15:00:04 -07:00
2020-08-25 15:00:04 -07:00
2020-08-25 15:00:04 -07:00
2020-10-02 14:59:25 -07:00
2020-08-24 14:35:00 -07:00
2020-10-11 10:21:04 -07:00
2020-09-21 17:16:17 -07:00
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
2020-08-12 10:57:59 -07:00
2020-10-16 11:11:19 -07:00
2020-08-19 11:04:23 +02:00
2020-08-03 15:07:18 -07:00
2020-09-01 09:19:43 +02:00
2020-10-13 18:38:34 -07:00
2020-10-12 16:44:57 -07:00
2020-08-27 09:53:06 +02:00
2020-08-29 09:29:32 +02:00
2020-10-13 18:38:26 -07:00
2020-10-13 18:38:26 -07:00
2020-10-13 18:38:26 -07:00
2020-08-18 13:45:20 +02:00
2020-08-18 13:45:20 +02:00
2020-09-30 11:50:35 -07:00
2020-10-16 11:11:21 -07:00
2020-09-28 19:47:41 +02:00
2020-09-17 10:19:52 +03:00
2020-10-08 17:17:27 +02:00
2020-10-16 12:21:15 -07:00
2020-09-23 14:10:31 +02:00
2020-10-13 15:58:10 -07:00
2020-10-14 12:23:00 -07:00
2020-09-23 21:29:49 -07:00
2020-09-15 13:51:08 +02:00
2020-09-24 21:56:24 +02:00
2020-08-12 10:57:59 -07:00
2020-09-22 11:27:48 +02:00
2020-09-29 17:50:10 +09:00
2020-10-16 07:28:20 +02:00
2020-10-07 18:08:41 -04:00
2020-10-15 14:43:29 -07:00
2020-09-02 14:39:44 +02:00
2020-10-06 07:07:06 +02:00
2020-09-25 06:12:25 +02:00
2020-10-07 11:09:20 +02:00
2020-10-06 07:07:05 +02:00
2020-09-03 12:21:03 +05:30
2020-09-04 17:21:56 +02:00
2020-08-06 16:13:13 +02:00
2020-09-10 18:19:16 +02:00
2020-10-12 13:38:31 +02:00
2020-10-12 10:51:02 -07:00
2020-10-06 06:16:01 -07:00
2020-10-13 18:38:26 -07:00
2020-08-12 10:57:59 -07:00
2020-09-10 14:03:31 -07:00
2020-10-16 11:11:22 -07:00
2020-08-12 20:42:08 +02:00
2020-09-23 13:11:11 -07:00
2020-10-05 13:37:04 +02:00
2020-10-15 10:46:16 -07:00
2020-08-12 10:57:57 -07:00
2020-09-16 19:12:27 -04:00
2020-10-16 15:14:43 -07:00
2020-09-28 14:44:51 -07:00
2020-10-08 15:29:06 -04:00
2020-08-12 10:57:59 -07:00
2020-09-23 10:43:18 -06:00
2020-10-15 14:43:29 -07:00
2020-09-30 22:44:26 +02:00
2020-08-14 12:52:34 +02:00
2020-08-12 10:57:57 -07:00
2020-08-28 15:12:38 +02:00
2020-08-06 16:13:13 +02:00
2020-10-13 18:38:32 -07:00
2020-10-02 13:16:33 +02:00
2020-08-06 17:54:04 +02:00
2020-09-23 09:42:39 -07:00
2020-09-28 08:55:13 +00:00
2020-09-09 10:22:40 +02:00
2020-08-13 18:41:00 -07:00
2020-09-10 09:32:31 -06:00
2020-10-16 11:11:20 -07:00
2020-09-28 15:07:41 +02:00
2020-09-23 13:24:34 -07:00
2020-08-19 14:02:49 -07:00
2020-10-05 13:37:03 +02:00
2020-09-03 15:17:28 -07:00
2020-08-04 21:02:38 -04:00
2020-08-24 15:09:58 -07:00
2020-10-14 12:08:34 -07:00
2020-09-17 19:21:16 +02:00
2020-09-18 09:13:40 +03:00
2020-09-08 16:28:49 +03:00
2020-10-17 09:25:47 -06:00
2020-08-14 19:56:57 -07:00
2020-08-14 19:56:57 -07:00
2020-09-04 11:16:09 +02:00
2020-09-28 08:51:08 -07:00
2020-10-14 12:08:34 -07:00
2020-09-25 16:30:06 +02:00
2020-10-16 11:11:18 -07:00
2020-09-16 08:54:53 -05:00
2020-08-31 13:08:10 -07:00
2020-10-06 11:28:03 +01:00
2020-10-12 11:40:41 -07:00
2020-08-26 12:41:56 +02:00
2020-10-08 18:00:08 +02:00
2020-08-21 11:03:38 -07:00
2020-08-23 17:36:59 -05:00
2020-10-16 11:11:19 -07:00
2020-10-13 18:38:32 -07:00
2020-08-24 15:09:32 -07:00
2020-10-05 13:37:04 +02:00
2020-09-04 12:46:06 +01:00
2020-10-16 11:11:19 -07:00
2020-09-28 12:14:08 +01:00
2020-10-11 10:31:11 -07:00
2020-10-12 14:21:15 -07:00
2020-09-04 09:25:20 -07:00
2020-08-06 16:13:13 +02:00
2020-08-21 14:04:14 +01:00
2020-08-12 10:57:59 -07:00
2020-09-02 11:31:23 -06:00
2020-10-16 11:11:20 -07:00
2020-10-09 08:53:08 +02:00
2020-10-09 08:55:17 +02:00
2020-09-05 12:14:30 -07:00
2020-10-07 09:23:39 +02:00
2020-10-05 13:37:03 +02:00
2020-10-15 07:49:46 +02:00
2020-09-23 18:02:49 -07:00
2020-10-13 18:38:35 -07:00
2020-10-13 18:38:30 -07:00
2020-10-16 11:11:18 -07:00
2020-08-12 10:57:56 -07:00
2020-10-13 18:38:28 -07:00
2020-09-28 12:16:13 +02:00
2020-10-02 11:33:47 +02:00
2020-09-11 17:41:55 -07:00
2020-08-12 10:58:02 -07:00
2020-10-16 11:11:19 -07:00
2020-08-28 12:37:42 +02:00
2020-08-14 19:56:56 -07:00
2020-10-12 10:40:34 -07:00
2020-10-16 11:11:17 -07:00
2020-09-04 12:46:07 +01:00
2020-10-13 18:38:31 -07:00
2020-08-26 12:41:53 +02:00
2020-08-07 11:33:21 -07:00
2020-10-16 11:11:19 -07:00
2020-09-01 09:58:04 +02:00
2020-08-18 14:14:25 +02:00
2020-09-25 17:48:54 +10:00
2020-09-16 16:52:37 +02:00
2020-08-06 16:13:13 +02:00
2020-10-05 18:40:01 -07:00
2020-09-10 13:30:22 -07:00
2020-10-13 17:33:48 -07:00
2020-08-13 04:16:15 +02:00
2020-10-09 20:22:32 -07:00
2020-08-15 08:26:55 -07:00
2020-09-18 09:25:33 -04:00
2020-09-22 13:58:40 +02:00
2020-10-16 11:11:18 -07:00
2020-10-16 11:11:19 -07:00
2020-09-01 09:58:03 +02:00
2020-10-13 18:38:27 -07:00
2020-09-10 10:43:13 -05:00
2020-09-24 19:49:36 -07:00
2020-09-05 13:09:03 -07:00
2020-09-25 17:48:54 +10:00
2020-10-13 18:38:35 -07:00
2020-10-12 15:19:07 -07:00
2020-10-16 11:11:15 -07:00
2020-09-25 18:01:48 -04:00
2020-10-16 11:11:16 -07:00
2020-08-07 11:33:29 -07:00
2020-10-16 11:11:16 -07:00
2020-08-12 12:09:36 -07:00
2020-08-07 18:48:15 -07:00
2020-08-31 12:52:33 -07:00
2020-09-11 09:30:01 +03:00
2020-08-07 11:33:26 -07:00
2020-10-06 07:29:36 -06:00
2020-09-16 16:26:56 +02:00
2020-09-10 11:19:34 +02:00
2020-10-12 10:00:51 -07:00
2020-09-23 18:02:49 -07:00
2020-08-31 12:52:33 -07:00
2020-10-01 19:14:36 -07:00
2020-10-02 19:15:16 +02:00
2020-08-04 12:44:53 +02:00
2020-08-04 12:39:28 +02:00
2020-09-28 16:38:11 +02:00
2020-08-12 10:57:59 -07:00
2020-08-06 16:50:59 +02:00
2020-09-10 19:27:59 +02:00
2020-08-03 23:24:26 -07:00
2020-09-14 09:45:34 -07:00
2020-10-12 13:01:37 +02:00
2020-10-14 16:09:32 -07:00
2020-09-22 17:50:32 +02:00
2020-09-27 13:29:49 -07:00
2020-08-26 20:15:34 +01:00
2020-09-14 15:45:25 +02:00
2020-09-30 09:12:03 +02:00
2020-09-17 13:00:46 -04:00
2020-08-03 23:24:26 -07:00
2020-10-13 18:38:28 -07:00
2020-09-10 11:19:29 +02:00
2020-08-03 14:39:35 -07:00
2020-09-23 19:32:09 -07:00
2020-08-26 12:42:02 +02:00
2020-10-05 18:35:30 +01:00
2020-08-04 20:16:37 -07:00
2020-08-18 17:06:15 +02:00
2020-10-16 11:11:22 -07:00
2020-09-01 14:18:28 +02:00
2020-08-04 21:00:11 -07:00
2020-10-05 13:37:03 +02:00
2020-08-18 13:45:20 +02:00
2020-10-07 18:14:14 +02:00
2020-09-16 13:22:44 +02:00
2020-08-07 11:33:24 -07:00
2020-08-23 17:36:59 -05:00
2020-10-15 18:42:13 -07:00
2020-10-11 18:09:44 -07:00
2020-08-07 11:33:25 -07:00
2020-10-13 18:38:27 -07:00
2020-08-07 11:33:25 -07:00
2020-09-30 11:50:35 -07:00
2020-08-10 12:06:44 -07:00
2020-09-19 13:13:39 -07:00
2020-09-18 14:24:16 +01:00
2020-09-01 09:58:06 +02:00
2020-10-02 21:18:25 +02:00
2020-09-28 18:43:57 -07:00
2020-09-30 10:50:30 +02:00
2020-10-06 11:18:04 +02:00
2020-09-23 10:43:19 -06:00
2020-10-13 18:38:30 -07:00
2020-10-13 18:38:30 -07:00
2020-09-10 09:41:30 -04:00
2020-09-25 14:23:27 +02:00
2020-08-14 19:56:56 -07:00
2020-10-02 12:02:30 +02:00
2020-10-17 15:05:30 -06:00
2020-09-10 13:15:40 -07:00
2020-08-06 16:13:13 +02:00
2020-08-23 10:38:24 +02:00
2020-09-24 22:12:18 +02:00
2020-09-16 22:05:18 +10:00
2020-10-05 12:43:53 +02:00
2020-10-17 15:04:36 -06:00
2020-10-15 15:51:28 -07:00
2020-09-08 14:10:59 +02:00
2020-09-17 19:21:16 +02:00
2020-10-16 11:11:22 -07:00
2020-10-12 16:35:51 -07:00
2020-09-10 14:03:31 -07:00
2020-09-25 16:33:58 +02:00
2020-08-05 19:00:23 -04:00
2020-09-08 13:33:11 +02:00
2020-08-06 16:13:13 +02:00
2020-08-05 11:08:41 -04:00
2020-09-10 10:05:58 +02:00
2020-08-18 10:01:44 +02:00
2020-08-05 09:30:19 -04:00
2020-08-18 10:01:44 +02:00
2020-09-04 09:31:54 -07:00
2020-10-16 11:11:19 -07:00
2020-10-05 13:21:49 +02:00
2020-09-17 10:26:41 -07:00
2020-10-01 09:40:35 -04:00
2020-08-05 18:43:02 +02:00
2020-08-12 10:57:59 -07:00
2020-08-06 16:13:13 +02:00
2020-10-16 11:11:15 -07:00
2020-08-09 13:58:04 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00
2020-08-12 10:57:59 -07:00