Re: [PATCH 00/20] drop useless LIST_HEAD

2018-12-28 Thread Darrick J. Wong
On Thu, Dec 27, 2018 at 04:40:55PM +0300, Dan Carpenter wrote: > On Tue, Dec 25, 2018 at 11:12:20PM +0100, Tom Psyborg wrote: > > there was discussion about this just some days ago. CC 4-5 lists is > > more than enough > > > > I don't know who you were discussing this with... > > You should CC t

Re: [PATCH 06/28] aio: implement IOCB_CMD_POLL

2018-03-21 Thread Darrick J. Wong
t 32 bits of the aio_buf field of the iocb. > > Unlike poll or epoll without EPOLLONESHOT this interface always works > in one shot mode, that is once the iocb is completed, it will have to be > resubmitted. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Looks

Re: [PATCH 03/28] fs: update documentation to mention __poll_t

2018-03-21 Thread Darrick J. Wong
t updated the docs but dropped the actual code update)... ...so with that fixed, Reviewed-by: Darrick J. Wong --D > --- > Documentation/filesystems/Locking | 2 +- > Documentation/filesystems/vfs.txt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --

Re: [PATCH 05/28] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-03-21 Thread Darrick J. Wong
: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > Documentation/filesystems/Locking | 7 ++- > Documentation/filesystems/vfs.txt | 13 + > fs/select.c | 28 > include/linux/fs.h

Re: [PATCH 13/36] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:20PM -0800, Christoph Hellwig wrote: > ->get_poll_head returns the waitqueue that the poll operation is going > to sleep on. Note that this means we can only use a single waitqueue > for the poll, unlike some current drivers that use two waitqueues for > different eve

Re: [PATCH 07/36] aio: add delayed cancel support

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:14PM -0800, Christoph Hellwig wrote: > The upcoming aio poll support would like to be able to complete the > iocb inline from the cancellation context, but that would cause > a lock order reversal. Add support for optionally moving the cancelation > outside the contex

Re: [PATCH 12/36] fs: add new vfs_poll and file_can_poll helpers

2018-03-19 Thread Darrick J. Wong
2 > mm/memcontrol.c | 2 +- For the fs/include/mm changes, Reviewed-by: Darrick J. Wong The other conversions look fine to me too but I've never looked at them before. :) --D > net/9p/trans_fd.c | 18 -- > v

Re: [PATCH 11/36] fs: update documentation for __poll_t

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:18PM -0800, Christoph Hellwig wrote: No commit message... "Update documentation to match the headers"? --D > Signed-off-by: Christoph Hellwig > --- > Documentation/filesystems/Locking | 2 +- > Documentation/filesystems/vfs.txt | 2 +- > 2 files changed, 2 inserti

Re: [PATCH 10/36] fs: cleanup do_pollfd

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:17PM -0800, Christoph Hellwig wrote: > Use straigline code with failure handling gotos instead of a lot > of nested conditionals. > > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- >

Re: [PATCH 09/36] fs: unexport poll_schedule_timeout

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:16PM -0800, Christoph Hellwig wrote: > No users outside of select.c. > > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > fs/select.c | 3 +-- > include/linux/poll.h | 2 -- > 2 files chang

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:15PM -0800, Christoph Hellwig wrote: > This is the io_getevents equivalent of ppoll/pselect and allows to > properly mix signals and aio completions (especially with IOCB_CMD_POLL) > and atomically executes the following sequence: > > sigset_t origmask; > >

Re: [PATCH 06/36] aio: delete iocbs from the active_reqs list in kiocb_cancel

2018-03-19 Thread Darrick J. Wong
r Reviewed-by: Darrick J. Wong --D > --- > fs/aio.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 2d40cf5dd4ec..0b6394b4e528 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -561,6 +561,8 @@ stati

Re: [PATCH 05/36] aio: simplify cancellation

2018-03-19 Thread Darrick J. Wong
ancel_fn); > > +/* > + * Only cancel if there ws a ki_cancel function to start with, and we > + * are the one how managed to clear it (to protect against simulatinious "...are the one who managed to clear it (to protect against simultaneous cancel calls)." ? Really only c

Re: [PATCH 04/36] aio: sanitize ki_list handling

2018-03-19 Thread Darrick J. Wong
t; of ignoring it. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Reviewed-by: Darrick J. Wong --D > --- > fs/aio.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 6295fc00f104..c32

Re: [PATCH 03/36] aio: refactor read/write iocb setup

2018-03-19 Thread Darrick J. Wong
erent > fields. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Looks straightforward enough to me, Reviewed-by: Darrick J. Wong --D > --- > fs/aio.c | 171 > --- > 1 file changed, 97 insertions

Re: [PATCH 02/36] aio: remove an outdated comment in aio_complete

2018-03-19 Thread Darrick J. Wong
y: Christoph Hellwig > Acked-by: Jeff Moyer Looks ok, Reviewed-by: Darrick J. Wong --D > --- > fs/aio.c | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 03d59593912d..41fc8ce6bc7f 100644 > --- a/fs/aio.c >

Re: [PATCH 01/36] aio: don't print the page size at boot time

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:08PM -0800, Christoph Hellwig wrote: > The page size is in no way related to the aio code, and printing it in > the (debug) dmesg at every boot serves no purpose. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Looks ok, Reviewed-by:

Re: [trivial PATCH] treewide: Align function definition open/close braces

2017-12-18 Thread Darrick J. Wong
struct xfs_buf *bp) > - { > +{ > struct xfs_agf *agf = XFS_BUF_TO_AGF(bp); > > if (xfs_sb_version_hascrc(&mp->m_sb)) { > @@ -2449,8 +2449,7 @@ xfs_agf_verify( >be32_to_cpu(agf->agf_refcount_level) > XFS_BTREE_MAXLEVELS)) >

Re: [PATCH v9 0/5] Add the ability to do BPF directed error injection

2017-12-13 Thread Darrick J. Wong
On Wed, Dec 13, 2017 at 01:03:57PM -0500, Josef Bacik wrote: > On Tue, Dec 12, 2017 at 03:11:50PM -0800, Darrick J. Wong wrote: > > On Mon, Dec 11, 2017 at 11:36:45AM -0500, Josef Bacik wrote: > > > This is the same as v8, just rebased onto the bpf tree. > > > > &g

Re: [PATCH v9 0/5] Add the ability to do BPF directed error injection

2017-12-12 Thread Darrick J. Wong
On Mon, Dec 11, 2017 at 11:36:45AM -0500, Josef Bacik wrote: > This is the same as v8, just rebased onto the bpf tree. > > v8->v9: > - rebased onto the bpf tree. > > v7->v8: > - removed the _ASM_KPROBE_ERROR_INJECT since it was not needed. > > v6->v7: > - moved the opt-in macro to bpf.h out of k