Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1047699pxb; Thu, 28 Jan 2021 06:57:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA6PCEL1o94E7yYNJ6VkQoe9g4mQ69uLlIp+o26DXs7r39XOUBMjeqIKjbGv3y4b/urx9l X-Received: by 2002:a17:906:538c:: with SMTP id g12mr11477696ejo.248.1611845840072; Thu, 28 Jan 2021 06:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611845840; cv=none; d=google.com; s=arc-20160816; b=ma9lUQ+2wLyawjkxo/m4rXgRaVio+MjUuVmBhiZiyuBkTdWQd41m/IW0u92xY3Uxnd 3Rf6ZW6/RoQdrrTCQxhnwznrCv12905k+5pV7lJkv1gmf0YEIj2QT1YSNgY4HeeyFhty I66fFlOigLuA/f/Cb76L/uP835WmvDVo/LbU+oMPE9CbIFyyvj+zp1dIceKOfFXkOpQB gVx9he/q0P2SM3jv7FVH42A56orpgK6Md/PXvBHnTzTEumbIbJ75frCXURLZV84DZQ+i kQGZcLbo9Fn/MFE2Z2OcLcZmwUXdjv2tqeL7gZAUPxkO3Rpj+GCILjpVEZO6vc6Z7oD6 MJ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=s8pODfBWHaQpNWcashPUSkcAafUoNUPWcP3DPIUKTjU=; b=xm0ty+snxniZ6cNsAjxbxd0kiBwrtvJwdygYjZG6r6GpMjYT1iIaEBl8OodsGRsdfF tcaNJvIccI3Epv2ZGl+ImfxF5F+I9/r2hlIXwmBMAh9ugu6lxhxTmREsgsllBejurmf3 JwwbG35C5VAB/R6WkSQdnz88wyXbSjGUAIOaaA5wapbc8sQ5ZNXmHKlt04xPELmBQ9YB QfLORX3Kwu/Hr2iRNz3O89f6KjyW0OkmS9KYvtz8KHPUp4usNqsvVC88f0ADGrXg6mtP CAeSnwkGxO9gWFskMGxfbkfhFeDwr5pD2/sz1c1EyqlPpkSoVjmKKSaH49OFed9shDyt shTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=WEdHchlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si3070748edr.457.2021.01.28.06.56.54; Thu, 28 Jan 2021 06:57:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=WEdHchlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232242AbhA1Oz6 (ORCPT + 99 others); Thu, 28 Jan 2021 09:55:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231975AbhA1Ouv (ORCPT ); Thu, 28 Jan 2021 09:50:51 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD5CC061756 for ; Thu, 28 Jan 2021 06:50:11 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id jx18so4437495pjb.5 for ; Thu, 28 Jan 2021 06:50:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s8pODfBWHaQpNWcashPUSkcAafUoNUPWcP3DPIUKTjU=; b=WEdHchlcmcEhixyRtWmu1QEJe+qYqKJL5RByzSBG3oCvEcrj966ntlz2wQh8YQlE/r OPgpkENuAH8x8AUBMgSQDX/nUcFGdSmSRxuHnr/Fut5VkWMdyewnfGM0jFfOeg6CHeJp 6y+cOI+pft++Xn0+4Zu3CyfIwZcY2y6hLtN5nTUVRuSosulO+q7Nevz/g+sqoYlf14ly Eb3yAU75c9GRaxLFT/ZFvPjFXoY0eN0Gt1Hdqvns0skv7NSAw0S5RC0htinWznPqes5e LG1E5C8lU8zsJ41wG9XMGobmauGanoucrPZpD3posk3tE8qsBOAkzYaMu6dct29G9tKx RLtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s8pODfBWHaQpNWcashPUSkcAafUoNUPWcP3DPIUKTjU=; b=hQigt8J95o7RiZSMH9v9/vu9ai0ilFoIX+z77eSfqzCWX6ruzWtBN5ynw7bhyKZLsG zARC6vYlBur5fqpyyB7PEFvVBQMsBmnKyBs9omzoxc8Rk6GOOK3MGHsrijzQkFFOcZzj qIXJU2m39UtY3BZxtwbz6fPjl4vrMuagqxQ0EaHunwQbWDhxngSkHP8mEU3VmvU3rjan OyK5RQpzQQW9thYaQUA4TlTBULQRvnCUC6dHER46MCWxDtLeN5oUZKdjbMfYM1xBfVnW y58VRqsnh/3fRSDP8IjDJaOsaNJ400OAb5gbCGKE3mykVWVg/X1aa80Zl/JvCA+U2OX4 WmmQ== X-Gm-Message-State: AOAM53287jd/Od/gC6sr7fUPoPvEXrdUl68aqMCwKz5Id6afoqDetZji 9PEY5XMztGxm86us4Kw/O8CgBQ== X-Received: by 2002:a17:90a:c7cc:: with SMTP id gf12mr11700787pjb.36.1611845411062; Thu, 28 Jan 2021 06:50:11 -0800 (PST) Received: from [192.168.4.41] (cpe-72-132-29-68.dc.res.rr.com. [72.132.29.68]) by smtp.gmail.com with ESMTPSA id i6sm6115206pgc.58.2021.01.28.06.50.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 06:50:10 -0800 (PST) Subject: Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl To: Kanchan Joshi , Pavel Begunkov Cc: Kanchan Joshi , Keith Busch , Christoph Hellwig , sagi@grimberg.me, linux-nvme@lists.infradead.org, io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Gonzalez , Nitesh Shetty , Selvakumar S References: <20210127150029.13766-1-joshi.k@samsung.com> <489691ce-3b1e-30ce-9f72-d32389e33901@gmail.com> From: Jens Axboe Message-ID: <6d847f4a-65a5-bc62-1d36-52e222e3d142@kernel.dk> Date: Thu, 28 Jan 2021 07:50:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/21 5:04 AM, Kanchan Joshi wrote: > And for some ioctls, driver may still need to use task-work to update > the user-space pointers (embedded in uring/ioctl cmd) during > completion. For this use case, we should ensure that just io_uring handles this part. It's already got everything setup for it, and I'd rather avoid having drivers touch any of those parts. Could be done by having an io_uring helper ala: io_uring_cmd_complete_in_task(cmd, handler); which takes care of the nitty gritty details. -- Jens Axboe