* [PATCH] powerpc: Wire up io_pgetevents
@ 2018-06-20 19:35 Breno Leitao
2018-06-21 6:11 ` Christoph Hellwig
2018-06-27 21:41 ` Michael Ellerman
0 siblings, 2 replies; 3+ messages in thread
From: Breno Leitao @ 2018-06-20 19:35 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Breno Leitao, Christoph Hellwig
Wire up io_pgetevents system call on powerpc.
io_pgetevents is a new syscall to read asynchronous I/O events from the
completion queue.
Tested with libaio branch aio-poll[1] and the io_pgetevents test (#22) passed
on both ppc64 LE and BE modes.
[1] https://pagure.io/libaio/branch/aio-poll
CC: Christoph Hellwig <hch@lst.de>
Signed-off-by: Breno Leitao <leitao@debian.org>
---
arch/powerpc/include/asm/systbl.h | 1 +
arch/powerpc/include/asm/unistd.h | 2 +-
arch/powerpc/include/uapi/asm/unistd.h | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index cfcf6a874cfa..01b5171ea189 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -393,3 +393,4 @@ SYSCALL(pkey_alloc)
SYSCALL(pkey_free)
SYSCALL(pkey_mprotect)
SYSCALL(rseq)
+COMPAT_SYS(io_pgetevents)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 1e9708632dce..c19379f0a32e 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -12,7 +12,7 @@
#include <uapi/asm/unistd.h>
-#define NR_syscalls 388
+#define NR_syscalls 389
#define __NR__exit __NR_exit
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index ac5ba55066dd..985534d0b448 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -399,5 +399,6 @@
#define __NR_pkey_free 385
#define __NR_pkey_mprotect 386
#define __NR_rseq 387
+#define __NR_io_pgetevents 388
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
--
2.16.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: Wire up io_pgetevents
2018-06-20 19:35 [PATCH] powerpc: Wire up io_pgetevents Breno Leitao
@ 2018-06-21 6:11 ` Christoph Hellwig
2018-06-27 21:41 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-06-21 6:11 UTC (permalink / raw)
To: Breno Leitao; +Cc: linuxppc-dev, Christoph Hellwig
On Wed, Jun 20, 2018 at 04:35:16PM -0300, Breno Leitao wrote:
> Wire up io_pgetevents system call on powerpc.
>
> io_pgetevents is a new syscall to read asynchronous I/O events from the
> completion queue.
>
> Tested with libaio branch aio-poll[1] and the io_pgetevents test (#22) passed
> on both ppc64 LE and BE modes.
Looks good to me:
Acked-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: powerpc: Wire up io_pgetevents
2018-06-20 19:35 [PATCH] powerpc: Wire up io_pgetevents Breno Leitao
2018-06-21 6:11 ` Christoph Hellwig
@ 2018-06-27 21:41 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2018-06-27 21:41 UTC (permalink / raw)
To: Breno Leitao, linuxppc-dev; +Cc: Breno Leitao, Christoph Hellwig
On Wed, 2018-06-20 at 19:35:16 UTC, Breno Leitao wrote:
> Wire up io_pgetevents system call on powerpc.
>
> io_pgetevents is a new syscall to read asynchronous I/O events from the
> completion queue.
>
> Tested with libaio branch aio-poll[1] and the io_pgetevents test (#22) passed
> on both ppc64 LE and BE modes.
>
> [1] https://pagure.io/libaio/branch/aio-poll
>
> CC: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Breno Leitao <leitao@debian.org>
> Acked-by: Christoph Hellwig <hch@lst.de>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/b2f82565f2caa1a5c1a26e68593eae
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-27 21:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20 19:35 [PATCH] powerpc: Wire up io_pgetevents Breno Leitao
2018-06-21 6:11 ` Christoph Hellwig
2018-06-27 21:41 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).