From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754772AbeARHcV convert rfc822-to-8bit (ORCPT ); Thu, 18 Jan 2018 02:32:21 -0500 Received: from mail.eperm.de ([89.247.134.16]:58394 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513AbeARHcT (ORCPT ); Thu, 18 Jan 2018 02:32:19 -0500 From: Stephan Mueller To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, netdev@vger.kernel.org Subject: Re: AIO operation and CMSG Date: Thu, 18 Jan 2018 08:32:16 +0100 Message-ID: <3515099.j1gFXZBptz@tauon.chronox.de> In-Reply-To: <20180117192213.GA21865@infradead.org> References: <6214924.yszrlpR4T4@positron.chronox.de> <20180117192213.GA21865@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 17. Januar 2018, 20:22:13 CET schrieb Christoph Hellwig: Hi Christoph, > On Sun, Jan 14, 2018 at 09:01:00AM +0100, Stephan Müller wrote: > > The syscall io_submit sends data to the kernel and invokes the respective > > handler function in the kernel such as the recvmsg handler. What I am > > wondering is whether there is a way to send CMSG data along with the > > io_submit syscall? If not, is CMSG handling with the AIO syscalls > > possible at all? > Not as-is, but it could be easily added by repurposing unused fields > in the iocb. The big question is if it should be done to the existing > IOCB_CMD_PREADV/IOCB_CMD_PWRITEV types, or if new SENDMSG/RECVMSG ones > should be added instead. Thank you for the clarification. I think for the moment we have found another solution that we are discussing at linux-crypto. Therefore, I would currently not see the need for an additional support of CMSG in AIO. Ciao Stephan