Blame test/integration/ubuntu-16.04/macro-hooks.patch
|
Packit Service |
ac8aad |
diff -Nupr src.orig/fs/aio.c src/fs/aio.c
|
|
Packit Service |
ac8aad |
--- src.orig/fs/aio.c 2016-12-15 19:55:38.992000000 +0000
|
|
Packit Service |
ac8aad |
+++ src/fs/aio.c 2016-12-15 19:57:05.396000000 +0000
|
|
Packit Service |
ac8aad |
@@ -1716,6 +1716,20 @@ SYSCALL_DEFINE3(io_cancel, aio_context_t
|
|
Packit Service |
ac8aad |
return ret;
|
|
Packit Service |
ac8aad |
}
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
+static int aio_max_nr_orig;
|
|
Packit Service |
ac8aad |
+void kpatch_load_aio_max_nr(void)
|
|
Packit Service |
ac8aad |
+{
|
|
Packit Service |
ac8aad |
+ aio_max_nr_orig = aio_max_nr;
|
|
Packit Service |
ac8aad |
+ aio_max_nr = 0x40000;
|
|
Packit Service |
ac8aad |
+}
|
|
Packit Service |
ac8aad |
+void kpatch_unload_aio_max_nr(void)
|
|
Packit Service |
ac8aad |
+{
|
|
Packit Service |
ac8aad |
+ aio_max_nr = aio_max_nr_orig;
|
|
Packit Service |
ac8aad |
+}
|
|
Packit Service |
ac8aad |
+#include "kpatch-macros.h"
|
|
Packit Service |
ac8aad |
+KPATCH_LOAD_HOOK(kpatch_load_aio_max_nr);
|
|
Packit Service |
ac8aad |
+KPATCH_UNLOAD_HOOK(kpatch_unload_aio_max_nr);
|
|
Packit Service |
ac8aad |
+
|
|
Packit Service |
ac8aad |
/* io_getevents:
|
|
Packit Service |
ac8aad |
* Attempts to read at least min_nr events and up to nr events from
|
|
Packit Service |
ac8aad |
* the completion queue for the aio_context specified by ctx_id. If
|