Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp91636pxb; Wed, 16 Feb 2022 22:46:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSvKYFA+uU1a47mwYrvvIToAJ157OSn7gHugDhknUc6L+dII5wBdDDp2udJviy5bjZCio7 X-Received: by 2002:a17:90a:9b16:b0:1b9:fda3:2a8 with SMTP id f22-20020a17090a9b1600b001b9fda302a8mr5879933pjp.198.1645080383088; Wed, 16 Feb 2022 22:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645080383; cv=none; d=google.com; s=arc-20160816; b=g43paebg9y643cJqAY3SvLeSGbTE+1T5kqDrNQ/ygOnJVvPRIY+yIECHvxckQGvm5E xIh3YLoEvL2nWYR+OsUVQY8elRyExOsBtwI/rKRIZa1DD8CR8uDBO4YBU8WPxIr8EAMH sZCDH1yJKlS7GH27mUqrvcLMS5z7YkgGHEmt6qnNiP4OundXK6NkD3zcfdl2FhfYbOTy kJhQBm2lpwLRtXWswyqYG8srHLXZ7uoVtYF4FTq+vlNJXIbFgg/Ap3AwNJWkO3wVHOMu rOiX7iZkblyZVz5a/3IYyRAZoI+TUCVz97vwh8vfcXr7Nl1LShpU2mO+St3pMZcdmIT/ d2og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jUg3g3sdAYsbb77Nx2O2AVDaTH7SLU/WVjOsGBQXccg=; b=OVoxAJZhnlX27AuYSrNXvdrBOySTpMro1XbE8vBCARihShktAufHAT0Zj4kV2jEOlR m2qz7C+tXSI0GkVYcE1mbaT4iVljK8YWzycjgM7S643Wv2Ktjq8VSG32jd+dcrGzk+2A CA6ijGo7M/L3oOVfQpQgdS2oVT4uiuaUmQOYh5l8pn0hyWwgh29rFpspOIACX8D7g/0d Db+eiu68Utx1jLbpAt+10KiwLxMzdEQl/lSiiEM2LCMHiKxzJDA9NCrqfu9fMl5CxTSY I7OW1R0fZ/adrJFkd8OF4r9ZgEt1jOMJFO1mqi0J8AFb7eaXsMg3zitSMgAsGYvZ6PwJ bXyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HbviZq4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3si7407151pln.165.2022.02.16.22.46.08; Wed, 16 Feb 2022 22:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HbviZq4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235194AbiBQGOC (ORCPT + 99 others); Thu, 17 Feb 2022 01:14:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbiBQGOC (ORCPT ); Thu, 17 Feb 2022 01:14:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E7B2A2284; Wed, 16 Feb 2022 22:13:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D0206187C; Thu, 17 Feb 2022 06:13:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09281C340E8; Thu, 17 Feb 2022 06:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645078427; bh=XU8/+T6y9Te4fAEm5lTKGoyHAI0zLBhVl/DOvgsvegA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HbviZq4sfYH0qT4Fj5pJNhPhNa9Dj1X44lE7ldQzZBHvTZ/EfVjHHm3p9YLeTxKXv 1hbqWcz3SjUsRWQSMW0MudUt5ePK6DaRMlFurAwS1T6nmyl6Dm1TnM0pqXrdQwJq0a ulYejbbtXiDVyviLQKws8XgegftWQLGSl613Mz1U= Date: Thu, 17 Feb 2022 07:13:44 +0100 From: Greg KH To: Guixin Liu Cc: bostroesser@gmail.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, xiaoguang.wang@linux.alibaba.com, xlpang@linux.alibaba.com Subject: Re: [PATCH 1/2] uio: add ioctl to uio Message-ID: References: <1645064962-94123-1-git-send-email-kanie@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1645064962-94123-1-git-send-email-kanie@linux.alibaba.com> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 10:29:21AM +0800, Guixin Liu wrote: > In TCMU, if backstore holds its own userspace buffer, for read cmd, the > data needs to be copied from userspace buffer to tcmu data area first, > and then needs to be copied from tcmu data area to scsi sgl pages again. > > To solve this problem, add ioctl to uio to let userspace backstore can > copy data between scsi sgl pages and its own buffer directly. > > Reviewed-by: Xiaoguang Wang > Signed-off-by: Guixin Liu > --- > drivers/uio/uio.c | 22 ++++++++++++++++++++++ > include/linux/uio_driver.h | 1 + No, sorry, thie uio driver will not be adding ioctls to them. If you need an ioctl, then you should not be using the UIO api but rather use a custom character driver instead. thanks, greg k-h