Kent Overstreet <koverstr...@google.com> writes: > Minor refactoring, to get rid of some duplicated code > > [a...@linux-foundation.org: fix warning] > Signed-off-by: Kent Overstreet <koverstr...@google.com> > Cc: Zach Brown <z...@redhat.com> > Cc: Felipe Balbi <ba...@ti.com> > Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> > Cc: Mark Fasheh <mfas...@suse.com> > Cc: Joel Becker <jl...@evilplan.org> > Cc: Rusty Russell <ru...@rustcorp.com.au> > Cc: Jens Axboe <ax...@kernel.dk> > Cc: Asai Thambi S P <asamymuth...@micron.com> > Cc: Selvan Mani <sm...@micron.com> > Cc: Sam Bradshaw <sbrads...@micron.com> > Cc: Jeff Moyer <jmo...@redhat.com> > Cc: Al Viro <v...@zeniv.linux.org.uk> > Cc: Benjamin LaHaise <b...@kvack.org> > Cc: Theodore Ts'o <ty...@mit.edu> > Signed-off-by: Andrew Morton <a...@linux-foundation.org>
The patch looks to preserve existing behaviour. However, the man page and the code disagree about the return code in the event that there is no cancelation routine (well, in the event that the iocb could not be canceled): ERRORS EAGAIN The iocb specified was not canceled. EFAULT One of the data structures points to invalid data. EINVAL The AIO context specified by ctx_id is invalid. ENOSYS io_cancel() is not implemented on this architecture. The code (before and after the patch) returns EINVAL when the iocb was not canceled. Should we fix the code or the docs, here? For the patch: Acked-by: Jeff Moyer <jmo...@redhat.com> -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/