Re: [RFC PATCH for-next 1/4] epoll: struct epoll userspace definiton

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:15 +, Eric Wong wrote: > (Did you intend to Cc LKML on your original reply?) > > Nathaniel Yazdani wrote: > > On Sun, Feb 23, 2014 at 9:29 PM, Eric Wong wrote: > > > Nathaniel Yazdani wrote: > > >> +++ b/include/uapi/linu

Re: [RFC PATCH for-next 4/4] epoll: epoll() syscall definition

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:21 +, Eric Wong wrote: > Nathaniel Yazdani wrote: > > + * stores triggered eventpoll entries in the 'out' array. The input array > > is > > + * _not_ read-only, because the resulting event mask gets written back to > > each &g

Re: [RFC PATCH for-next 2/4] epoll: epoll() syscall declaration

2014-02-25 Thread Nathaniel Yazdani
On Tue, 2014-02-25 at 10:30 +, Eric Wong wrote: > Nathaniel Yazdani wrote: > > On Sun, Feb 23, 2014 at 9:32 PM, Eric Wong wrote: > > > Nathaniel Yazdani wrote: > > >> +asmlinkage long sys_epoll(int ep, struct epoll __user *in, > > >> +

Re: [RFC PATCH for-next 3/4] epoll: struct epoll support

2014-02-24 Thread Nathaniel Yazdani
On 2/24/14, Jonathan Corbet wrote: > So I was just looking things over quickly, and something jumped out at > me. In ep_control(): > >> +} else if (!(*io) && epi) { >> +/* delete this eventpoll entry */ >> +if (is_file_epoll(target)) { >> +tep = tar

Re: [RFC PATCH for-next 2/4] epoll: epoll() syscall declaration

2014-02-23 Thread Nathaniel Yazdani
On Sun, Feb 23, 2014 at 9:32 PM, Eric Wong wrote: > Nathaniel Yazdani wrote: >> +asmlinkage long sys_epoll(int ep, struct epoll __user *in, >> + unsigned int inc, struct epoll __user *out, >> + unsigned int outc, int timeout);

[RFC PATCH for-next 2/4] epoll: epoll() syscall declaration

2014-02-23 Thread Nathaniel Yazdani
Add prototype for epoll() system call, defined in fs/eventpoll.c. This interface behaves like kevent() in BSD systems in that it supports the addition/deletion/modification of eventpoll entries in the same system call that polls for ready events. Signed-off-by: Nathaniel Yazdani --- diff --git a

[RFC PATCH for-next 4/4] epoll: epoll() syscall definition

2014-02-23 Thread Nathaniel Yazdani
fully Signed-off-by: Nathaniel Yazdani --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index af90312..13451a2 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1816,6 +1981,66 @@ SYSCALL_DEFINE1(epoll_create, int, size) } /* + * This behaves like sys_epoll_ctl() and sys_epoll_wait() combined

[RFC PATCH for-next 1/4] epoll: struct epoll userspace definiton

2014-02-23 Thread Nathaniel Yazdani
output. Signed-off-by: Nathaniel Yazdani --- diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb2..e702072 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -61,6 +61,12 @@ struct epoll_event { __u64 data

[RFC PATCH for-next 3/4] epoll: struct epoll support

2014-02-23 Thread Nathaniel Yazdani
: Nathaniel Yazdani --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index af90312..c3251d5 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -168,8 +168,11 @@ struct epitem { /* wakeup_source used when EPOLLWAKEUP is set */ struct wakeup_source __rcu *ws; - /* The

[RFC PATCH for-next 0/4] epoll: combined control/wait syscall

2014-02-23 Thread Nathaniel Yazdani
Hi Everyone, Being a new feature, this is obviously targeted for the next release cycle. There's been some interest in a kevent()-like interface to eventpoll, which this patch set aims to fulfill by adding an epoll() system call (couldn't think of a more descriptive name, suggestions welcome). The

[RFC PATCH for-next 0/4] epoll: combined control/wait syscall

2014-02-23 Thread Nathaniel Yazdani
Hi Everyone, Being a new feature, this is obviously targeted for the next release cycle. There's been some interest in a kevent()-like interface to eventpoll, which this patch set aims to fulfill by adding an epoll() system call (couldn't think of a more descriptive name, suggestions welcome). The

Re: [RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-03 Thread Nathaniel Yazdani
On 2/3/14, Andy Lutomirski wrote: > On 02/02/2014 06:17 PM, Nathaniel Yazdani wrote: >> Hi everyone, >> >> This patch series adds support for read(), write(), and ioctl() >> operations >> on eventpolls as well as an associated userspace structure to format the &

Re: [RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-03 Thread Nathaniel Yazdani
On 2/3/14, Clemens Ladisch wrote: > Nathaniel Yazdani wrote: >> Using the normal I/O interface to manipulate eventpolls is much neater >> than using epoll-specific syscalls > > But it introduces a _second_ API, which is epoll-specific too, and does > not use the s

[RFC PATCH 3/3] epoll: add read()/write()/ioctl() operations

2014-02-02 Thread Nathaniel Yazdani
() is a simple interface to configure a default timeout for read() operations on the given eventpoll. Signed-off-by: Nathaniel Yazdani --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index af90312..7f0ce59 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -168,8 +168,11 @@ struct epitem

[RFC PATCH 2/3] epoll: add struct epoll & ioctl() commands

2014-02-02 Thread Nathaniel Yazdani
r (needed for write() to properly create events but useful information in general). Also define the ioctl() command macros to set & get the timeout of an eventpoll. Signed-off-by: Nathaniel Yazdani --- diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb

[RFC PATCH 1/3] epoll: reserve small ioctl() space

2014-02-02 Thread Nathaniel Yazdani
Reserve a small ioctl() command space for eventpolls, of which only two are currently utilized. Signed-off-by: Nathaniel Yazdani --- diff --git a/Documentation/ioctl/ioctl-number.txt b/Documentation/ioctl/ioctl-number.txt index d7e43fa..3c6f8ac 100644 --- a/Documentation/ioctl/ioctl-number.txt

[RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-02 Thread Nathaniel Yazdani
Hi everyone, This patch series adds support for read(), write(), and ioctl() operations on eventpolls as well as an associated userspace structure to format the eventpoll entries delivered via read()/write() buffers. The new structure, struct epoll, differs from struct epoll_event mainly in that i

[RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-02 Thread Nathaniel Yazdani
Hi everyone, This patch series adds support for read(), write(), and ioctl() operations on eventpolls as well as an associated userspace structure to format the eventpoll entries delivered via read()/write() buffers. The new structure, struct epoll, differs from struct epoll_event mainly in that s

[PATCH] ceph: fix null pointer dereference

2013-08-04 Thread Nathaniel Yazdani
es/4685>. Signed-off-by: Nathaniel Yazdani --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 187bf21..ddff072 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -414,6 +414,9 @@ static struct ceph_mds_session *register_session(struct ceph_mds_client *mdsc, {

[PATCH] jbd: remove unneeded semicolon

2013-07-03 Thread Nathaniel Yazdani
This patch removes an unnecessary semicolon that was placed after the closing bracket of an inline JBD wrapper function. Signed-off-by: Nathaniel Yazdani --- diff --git a/include/linux/jbd.h b/include/linux/jbd.h index 7e0b622..9d789a9 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h

Re: [PATCH] IPv6: simplify & condense a few declarations & statements

2013-04-17 Thread Nathaniel Yazdani
>I'm not applying this even with the long lines in the commit message >fixes, sorry. Okay, well thank you for your time nonetheless. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vge

[PATCH] IPv6: simplify & condense a few declarations & statements

2013-04-17 Thread Nathaniel Yazdani
This patch combines several statements/declarations into more concise forms and removes a couple of unnecessary local variables within a few functions, mostly inline. Signed-off-by: Nathaniel Yazdani --- diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 192dd1a..3f7dcdb 100644 --- a

[PATCH mainline] btrfs: fix minor typo in comment

2013-04-14 Thread Nathaniel Yazdani
In the comment describing the sync_writers field of the btrfs_inode struct, "fsyncing" was misspelled "fsycing." Signed-off-by: Nathaniel Yazdani --- diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index d9b97d4..08b286b 100644 --- a/fs/btrfs/btrfs_in