Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2714466pxm; Mon, 28 Feb 2022 04:57:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1Q4HDWhS6Fp/ljdsNVAc+/twwXXqpV0m3sHa15SE8h0YneKuR5PQ3Vn8K2RhLbY5tUe12 X-Received: by 2002:a63:445c:0:b0:375:9c0c:c360 with SMTP id t28-20020a63445c000000b003759c0cc360mr15611713pgk.588.1646053063289; Mon, 28 Feb 2022 04:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646053063; cv=none; d=google.com; s=arc-20160816; b=M6LtO6XGu8+3BawNDZWVHasp26DWhF90jTLSD6LILvjaTPHlZNKJrXva3rs0pADcuv vUh46/70cq+5IZRhsItmCIWeyZXi9DpLUrEY4g3EsW4hgj/XnjhlNtuJGOUqLaIpO3fc bo7CMIlGT9QNxvDR7Gx2/LghMW6KIjvoKYrxipOFAlpt8S5w6gjh83S9G8DAg/8Mv4Rs 1FY13Rsg1wMTOk+ltCPEiYW0/IWIhcanmsfAfl7H62NVcCyXEdaQOrBu/ND4XWAnbAki PVuokIRUTTAvben2fuyOaDLQ3C48OCgtttY2Do0MyonA92bWnGEfwAYHmcfs5HI7M27o aCuA== 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=L2WqWjeIRloux5rWdqNeFDgVkbzdfQL9Pf2bxvwhzC0=; b=wsEncqUSWYLczxZ6+EGYUCCiVOl5CunflvXhQykLOlwPOn49g8M7Ce8/exhaegVLWU ABZxTD8pdEqIm6nvaZ6k90xTM2A/cQOshz9oSAtuFRvFP027MqbJobdcMhmHwtMdxvEM OsSGJXKYI2XVEl3qUoo/Jgpi0uttrjYsiUxOqLPI0Ihb6/7tUOBshAgiWCCagxpCQcOE YM8w7uBnYIT6+mgTxKgA+5Vo14EULtqcsqAChhNyG5twhB1U4XXN+89vZ0sD7LiJpoGR 81f7sdnu0YsReACkoy3f61kqPT79tZ2x2VUDmtlcMMtEbhIsqQ/0/F9AG+3Nt3bV+aha I17g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RRObxfQN; 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 t13-20020a17090a448d00b001bc7c847023si9908218pjg.60.2022.02.28.04.57.26; Mon, 28 Feb 2022 04:57:43 -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=RRObxfQN; 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 S234884AbiB1KsA (ORCPT + 99 others); Mon, 28 Feb 2022 05:48:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiB1Kr7 (ORCPT ); Mon, 28 Feb 2022 05:47:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109285B888; Mon, 28 Feb 2022 02:47:19 -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 ams.source.kernel.org (Postfix) with ESMTPS id BBBA1B80FF2; Mon, 28 Feb 2022 10:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26BB0C340E7; Mon, 28 Feb 2022 10:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646045236; bh=wKsdoTANU5hpG2zlBt0hwyF+7+quOlTjzA0JHxNClnY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RRObxfQNLSdZIiAH3BZhaD4LIww+/AHsaRBHjOolKzZF4/eGh5zIjLWvg0q8H6yT8 pA3jOoXTWA7jwLEhPde/cTtTNsVc2PnWb68hpE1E3mzdYrP6YrbRPY8k4ShYmP5/qh rVKF8m5KZDO7o0iyU0r3t7CtUoDT/zPuXAfWSYRU= Date: Mon, 28 Feb 2022 11:47:13 +0100 From: Greg KH To: Xiaoguang Wang Cc: Bodo Stroesser , Guixin Liu , martin.petersen@oracle.com, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, xlpang@linux.alibaba.com Subject: Re: [PATCH 2/2] scsi:target:tcmu: reduce once copy by using uio ioctl Message-ID: References: <1645064962-94123-1-git-send-email-kanie@linux.alibaba.com> <1645064962-94123-2-git-send-email-kanie@linux.alibaba.com> <4aef53b1-3e0f-92eb-4bd3-cdc4cd301866@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4aef53b1-3e0f-92eb-4bd3-cdc4cd301866@linux.alibaba.com> X-Spam-Status: No, score=-7.5 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 Mon, Feb 28, 2022 at 04:52:52PM +0800, Xiaoguang Wang wrote: > > hi Bodo, > > > Liu, > > > > generally I like ideas to speed up tcmu. > > > > OTOH, since Andy Grover implemented tcmu based on uio device, we are > > restricted to what uio offers. With today's knowledge I think we would > > not use the uio device in tcmu again, but switching away from uio now > > would break existing userspace SW. > Yeah, it will have much work if deciding to switch away from uio. > I came up with a hacky or crazy idea :) what about we create a new file > in tcmu_open() by anon_inode_getfile_secure(), and export this fd by > tcmu mail box, we can do ioctl() on this new file, then uio framework > won't be touched... No new ioctls please. That is creating a new user/kernel api that you must support for the next 20+ years. Please do not do that. thanks, greg k-h