Updated eventfd_synchronization patchset

This commit is contained in:
Alistair Leslie-Hughes 2023-10-01 08:49:40 +11:00
parent 2e55aa06c2
commit 8b016d206e

View File

@ -1,4 +1,4 @@
From 9ab2897d8c05a9950ce14200d1d7f374a31ee886 Mon Sep 17 00:00:00 2001
From e222dd363cf419eecb0d5c97390b60de15f37951 Mon Sep 17 00:00:00 2001
From: Zebediah Figura <z.figura12@gmail.com>
Date: Fri, 8 Jun 2018 18:51:40 -0500
Subject: [PATCH] server: Add an object operation to grab the esync file
@ -43,7 +43,7 @@ Split off to decrease patch size.
34 files changed, 68 insertions(+)
diff --git a/server/async.c b/server/async.c
index 7aef28355f0..7ac675f75c4 100644
index 9cb251df5ce..337bba8631b 100644
--- a/server/async.c
+++ b/server/async.c
@@ -77,6 +77,7 @@ static const struct object_ops async_ops =
@ -54,7 +54,7 @@ index 7aef28355f0..7ac675f75c4 100644
async_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -586,6 +587,7 @@ static const struct object_ops iosb_ops =
@@ -676,6 +677,7 @@ static const struct object_ops iosb_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -75,7 +75,7 @@ index ff0799f5880..d9824de8eac 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/change.c b/server/change.c
index 325782d8197..90d5bfa3019 100644
index 7a806abc017..e080511bb23 100644
--- a/server/change.c
+++ b/server/change.c
@@ -112,6 +112,7 @@ static const struct object_ops dir_ops =
@ -111,7 +111,7 @@ index 6933195e72d..3d4be86a212 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/console.c b/server/console.c
index 5407fba1411..ef6bcb12f5a 100644
index b64283baf4a..1cc9eea6a50 100644
--- a/server/console.c
+++ b/server/console.c
@@ -81,6 +81,7 @@ static const struct object_ops console_ops =
@ -191,7 +191,7 @@ index 48adb244b09..d85a2000684 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/device.c b/server/device.c
index d6288920bf4..80904d33d0d 100644
index 436dac6bfe9..f730fa81afa 100644
--- a/server/device.c
+++ b/server/device.c
@@ -66,6 +66,7 @@ static const struct object_ops irp_call_ops =
@ -227,7 +227,7 @@ index d6288920bf4..80904d33d0d 100644
no_signal, /* signal */
device_file_get_fd, /* get_fd */
diff --git a/server/directory.c b/server/directory.c
index 2cd61be0838..ed3ab1ebb8f 100644
index 23d7eb0a2b7..bc161b9ab7e 100644
--- a/server/directory.c
+++ b/server/directory.c
@@ -69,6 +69,7 @@ static const struct object_ops object_type_ops =
@ -247,7 +247,7 @@ index 2cd61be0838..ed3ab1ebb8f 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/esync.c b/server/esync.c
index 8faea3c790b..1fa81b96176 100644
index 6a63c0dd5e9..f95dc5a391f 100644
--- a/server/esync.c
+++ b/server/esync.c
@@ -122,6 +122,7 @@ static const struct object_ops esync_ops =
@ -279,10 +279,10 @@ index f1b79b1b35e..c727bfdd1ba 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/fd.c b/server/fd.c
index cd8f7171e6e..a61c09559fe 100644
index 74ad95fd4d1..4ce498ec0ef 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -212,6 +212,7 @@ static const struct object_ops fd_ops =
@@ -172,6 +172,7 @@ static const struct object_ops fd_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -290,7 +290,7 @@ index cd8f7171e6e..a61c09559fe 100644
NULL, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -253,6 +254,7 @@ static const struct object_ops device_ops =
@@ -213,6 +214,7 @@ static const struct object_ops device_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -298,7 +298,7 @@ index cd8f7171e6e..a61c09559fe 100644
NULL, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -293,6 +295,7 @@ static const struct object_ops inode_ops =
@@ -253,6 +255,7 @@ static const struct object_ops inode_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -306,7 +306,7 @@ index cd8f7171e6e..a61c09559fe 100644
NULL, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -335,6 +338,7 @@ static const struct object_ops file_lock_ops =
@@ -295,6 +298,7 @@ static const struct object_ops file_lock_ops =
add_queue, /* add_queue */
remove_queue, /* remove_queue */
file_lock_signaled, /* signaled */
@ -315,10 +315,10 @@ index cd8f7171e6e..a61c09559fe 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/file.c b/server/file.c
index 090d6c244f7..7edf612de73 100644
index b4f99ddc93b..1b4efb04bc5 100644
--- a/server/file.c
+++ b/server/file.c
@@ -123,6 +123,7 @@ static const struct object_ops file_ops =
@@ -94,6 +94,7 @@ static const struct object_ops file_ops =
add_queue, /* add_queue */
remove_queue, /* remove_queue */
default_fd_signaled, /* signaled */
@ -327,7 +327,7 @@ index 090d6c244f7..7edf612de73 100644
no_signal, /* signal */
file_get_fd, /* get_fd */
diff --git a/server/handle.c b/server/handle.c
index 38ad80da267..53cc1e4eb43 100644
index 0595fdb403b..d41c7e86454 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -126,6 +126,7 @@ static const struct object_ops handle_table_ops =
@ -387,7 +387,7 @@ index 2d8697ec9bd..4cf9b73f784 100644
no_signal, /* signal */
mailslot_device_file_get_fd, /* get_fd */
diff --git a/server/mapping.c b/server/mapping.c
index 8d4332d240f..1a8d480cfa9 100644
index 2d0a0b783e2..1acfb032bfd 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -67,6 +67,7 @@ static const struct object_ops ranges_ops =
@ -427,7 +427,7 @@ index af0efe72132..4785a830e92 100644
mutex_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/named_pipe.c b/server/named_pipe.c
index 3e6cf09d4f2..b8ec17a787a 100644
index f3404a33c3b..f28cb14cb45 100644
--- a/server/named_pipe.c
+++ b/server/named_pipe.c
@@ -119,6 +119,7 @@ static const struct object_ops named_pipe_ops =
@ -471,7 +471,7 @@ index 3e6cf09d4f2..b8ec17a787a 100644
no_signal, /* signal */
named_pipe_device_file_get_fd, /* get_fd */
diff --git a/server/object.h b/server/object.h
index f6ad9e8ccdd..f4261d0d585 100644
index dfdd691601f..711af54b579 100644
--- a/server/object.h
+++ b/server/object.h
@@ -78,6 +78,8 @@ struct object_ops
@ -484,7 +484,7 @@ index f6ad9e8ccdd..f4261d0d585 100644
void (*satisfied)(struct object *,struct wait_queue_entry *);
/* signal an object */
diff --git a/server/process.c b/server/process.c
index 60cc03032b2..c79a574d137 100644
index a0d5ea64d97..777bf7c2fe2 100644
--- a/server/process.c
+++ b/server/process.c
@@ -105,6 +105,7 @@ static const struct object_ops process_ops =
@ -512,10 +512,10 @@ index 60cc03032b2..c79a574d137 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/queue.c b/server/queue.c
index 051aafc6c3d..375b3e33a6e 100644
index 348fdac3214..2cd8949a252 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -173,6 +173,7 @@ static const struct object_ops msg_queue_ops =
@@ -174,6 +174,7 @@ static const struct object_ops msg_queue_ops =
msg_queue_add_queue, /* add_queue */
msg_queue_remove_queue, /* remove_queue */
msg_queue_signaled, /* signaled */
@ -523,7 +523,7 @@ index 051aafc6c3d..375b3e33a6e 100644
msg_queue_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -210,6 +211,7 @@ static const struct object_ops thread_input_ops =
@@ -211,6 +212,7 @@ static const struct object_ops thread_input_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -532,10 +532,10 @@ index 051aafc6c3d..375b3e33a6e 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/registry.c b/server/registry.c
index 93e8a309593..32a424cd842 100644
index 629d67c832f..d6b39b99b22 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -178,6 +178,7 @@ static const struct object_ops key_ops =
@@ -180,6 +180,7 @@ static const struct object_ops key_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -592,10 +592,10 @@ index 19b76d44c16..55cd6aa037e 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/sock.c b/server/sock.c
index 512b7c0f78e..7a8be919494 100644
index 52175b08987..77b41716cd1 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -249,6 +249,7 @@ static const struct object_ops sock_ops =
@@ -451,6 +451,7 @@ static const struct object_ops sock_ops =
add_queue, /* add_queue */
remove_queue, /* remove_queue */
default_fd_signaled, /* signaled */
@ -603,7 +603,7 @@ index 512b7c0f78e..7a8be919494 100644
no_satisfied, /* satisfied */
no_signal, /* signal */
sock_get_fd, /* get_fd */
@@ -3124,6 +3125,7 @@ static const struct object_ops ifchange_ops =
@@ -3481,6 +3482,7 @@ static const struct object_ops ifchange_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -611,7 +611,7 @@ index 512b7c0f78e..7a8be919494 100644
no_satisfied, /* satisfied */
no_signal, /* signal */
ifchange_get_fd, /* get_fd */
@@ -3345,6 +3347,7 @@ static const struct object_ops socket_device_ops =
@@ -3702,6 +3704,7 @@ static const struct object_ops socket_device_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -632,7 +632,7 @@ index 27d48e2f994..8cb24b4ff6e 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/thread.c b/server/thread.c
index a8fa9a19585..b49b3f159d2 100644
index 0d5bdcf21d9..9dc38d4cce9 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -96,6 +96,7 @@ static const struct object_ops thread_apc_ops =
@ -643,7 +643,7 @@ index a8fa9a19585..b49b3f159d2 100644
no_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -141,6 +142,7 @@ static const struct object_ops context_ops =
@@ -138,6 +139,7 @@ static const struct object_ops context_ops =
add_queue, /* add_queue */
remove_queue, /* remove_queue */
context_signaled, /* signaled */
@ -651,7 +651,7 @@ index a8fa9a19585..b49b3f159d2 100644
no_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -190,6 +192,7 @@ static const struct object_ops thread_ops =
@@ -187,6 +189,7 @@ static const struct object_ops thread_ops =
add_queue, /* add_queue */
remove_queue, /* remove_queue */
thread_signaled, /* signaled */
@ -672,10 +672,10 @@ index 96dc9d00ca1..f59902d5607 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/token.c b/server/token.c
index dcb2a879ba6..76a6bc279a5 100644
index 4df8d2e0c6e..8b4d2f0c1b1 100644
--- a/server/token.c
+++ b/server/token.c
@@ -150,6 +150,7 @@ static const struct object_ops token_ops =
@@ -143,6 +143,7 @@ static const struct object_ops token_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -684,10 +684,10 @@ index dcb2a879ba6..76a6bc279a5 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/window.c b/server/window.c
index 24059aac0fe..a79fda5ad80 100644
index 242e93f303a..3aa7ad4ad79 100644
--- a/server/window.c
+++ b/server/window.c
@@ -108,6 +108,7 @@ static const struct object_ops window_ops =
@@ -107,6 +107,7 @@ static const struct object_ops window_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -696,10 +696,10 @@ index 24059aac0fe..a79fda5ad80 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
diff --git a/server/winstation.c b/server/winstation.c
index 1408e1a9e65..a99c60a28ff 100644
index 5903497d61e..7692fbe3ed2 100644
--- a/server/winstation.c
+++ b/server/winstation.c
@@ -75,6 +75,7 @@ static const struct object_ops winstation_ops =
@@ -76,6 +76,7 @@ static const struct object_ops winstation_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -707,7 +707,7 @@ index 1408e1a9e65..a99c60a28ff 100644
NULL, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
@@ -115,6 +116,7 @@ static const struct object_ops desktop_ops =
@@ -116,6 +117,7 @@ static const struct object_ops desktop_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
@ -716,5 +716,5 @@ index 1408e1a9e65..a99c60a28ff 100644
no_signal, /* signal */
no_get_fd, /* get_fd */
--
2.34.1
2.42.0