kpatch/test/integration/rhel-8.8/gcc-static-local-var-4.patch
Joe Lawrence df177e2fc5 test/integration/rhel-8.8: add kernel-4.18.0-477.10.1.el8_8 tests
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2023-05-10 14:36:46 -04:00

24 lines
625 B
Diff

diff -Nupr src.orig/fs/aio.c src/fs/aio.c
--- src.orig/fs/aio.c 2023-04-24 14:22:43.250959301 -0400
+++ src/fs/aio.c 2023-04-24 14:23:21.002089674 -0400
@@ -247,11 +247,18 @@ static int __init aio_setup(void)
}
__initcall(aio_setup);
-static void put_aio_ring_file(struct kioctx *ctx)
+void kpatch_aio_foo(void)
+{
+ if (!jiffies)
+ printk("kpatch aio foo\n");
+}
+
+__always_inline static void put_aio_ring_file(struct kioctx *ctx)
{
struct file *aio_ring_file = ctx->aio_ring_file;
struct address_space *i_mapping;
+ kpatch_aio_foo();
if (aio_ring_file) {
truncate_setsize(file_inode(aio_ring_file), 0);