Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp307187lqh; Mon, 6 May 2024 22:24:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJUuZCVKHvSTlugDwaHNRT8xyd+KuOP/YXGZclLcjJK9p7aWWxukjZ59V9fYdmMN+SISqJTQsdj8Orjs13oqGAAC72SH7uhx1ii8QIhg== X-Google-Smtp-Source: AGHT+IF+QaEOKkjfmaYJU30g/Axgd/oMRYHDnScjT+Z9cuQrX9T3E29opQWonK5uCg5mJPO3Ckfl X-Received: by 2002:a05:6218:260c:b0:17f:6b3f:1b0a with SMTP id oy12-20020a056218260c00b0017f6b3f1b0amr13974307rwc.15.1715059444736; Mon, 06 May 2024 22:24:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715059444; cv=pass; d=google.com; s=arc-20160816; b=ZjG/qOzGpnYAGAzfauHNwn7Hh4nJGzasMPK3hSVoHRi1q/550WrAvgAkLlHS18iCVI jpz9UBJkW/3Rik4HrdM8D9yPRXdmjmWnuq4nov9lZSxKeobbmc/cCy1AamhmVGyyLBH4 vGjEeXzrpNsY2fIBQrXIhF5yL6WnT3EYCSpNd8W6xwwqWKSqE9cX6arvvjY4bgaWf5Qy rd5e0ZYJBna42/r37nJ6+WD/QAa4KqD8flG2iOlp0jdupT7ldwFfdocckRbadTJLja85 GoT9dbfH7KRmIKKNidlo++beEeCUxK8ntnl3NghVbwFa/+IEO0Lczl4adqAy1j0KR3+M vbQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=eLSWL99Uk2hAz/dS69zc+plpzQva2XWJGmy85zm1bw4=; fh=BcPzcvWWPkvvYvhh93BHBiAIsbewQO5EnjUSKk8RR1I=; b=sLpr3wJSMN+P97nquvdHhW9ezyXf7XlCYNMZtxWICP8GKQtMN4T+rLtGF8wC5UVfvI nJKX2d4TNzVvH/m8jFsi5KpM/9d/C4f/GdDICJN5jgWuPeKgxQ9+s0FL0fkG9vLFDAwL tey0AUO8Acotr/8LudSw2fW5VFOpFOwxnaSdNwUL/rYPlf71wZYgzRuvEQvSKlQXVkYo mNzkdC83rJyvMb1a7n7vkLg36dDKl9JpqbWBFWvgSXEmqf6gxXO/lVQ2uIxy/W6SoKuy Co416ygbKN6VlrO5nopVROdWNOsxtWEnxoaYygedyOcMwQX+IBOtaWvG1Pi+NbDHanS5 a0aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qL2BIh1h; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-170688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t7-20020a17090a4e4700b002b1d0dc6163si9952210pjl.90.2024.05.06.22.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 22:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qL2BIh1h; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-170688-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A9EF286A4F for ; Tue, 7 May 2024 05:24:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8CB36BFA6; Tue, 7 May 2024 05:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="qL2BIh1h" Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 024E86BB4E for ; Tue, 7 May 2024 05:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715059440; cv=none; b=cw1gcr+90SayAL/Q8EwllbvUw9siXAVSKrNEw3Cvq5OzpQNXOewa/lLmzgecVN9FrosIXzbJqUSNy95+NPucIoo/TOby7SiNgPE1UnAGuVipZb7ouVEGePZoNe+PWrXB03X49e89oVsvkkFoPplsyFoBzbeOTOy9urzFhehViQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715059440; c=relaxed/simple; bh=rw1WD8iW0Gin6xrr/ze+7VZddUt6rFngb7Xf/Hf/NyU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=mnMcfRDCMPs0QOLB87OFyvLFGEZVlrvigHWXqqbXvMHi8XB1lzBbGkPe+EKnCZ7n59Wgye3a5N7tdGFtN9i18ajitxgsIgVAVRyC1A+cw0L8MpVlRi81BPDlAMi7M+WSyUI+5b9UdXLTjA3oN9ENlRNNkt57q+G/Xk5UNjj6z1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=qL2BIh1h; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240507052349epoutp01c67f7853fcce86e2779fe86abd214477~NHXbufxJV0306303063epoutp01I for ; Tue, 7 May 2024 05:23:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240507052349epoutp01c67f7853fcce86e2779fe86abd214477~NHXbufxJV0306303063epoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1715059429; bh=eLSWL99Uk2hAz/dS69zc+plpzQva2XWJGmy85zm1bw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qL2BIh1h16G9HTz2nd1pylvnymLz0PDVPwidNxOG6BNKGiOepmJ4NXbexkI3H1iB3 RN++JVBBOJwxc3wfQjPXaoccqt0gLtRaIc7g0eSmAJaByyQqHsN8Htgb3D8ReTQ9RU YJF6tl62DMayR2jpdZljxWj4SFeDiRtUYAxmoXi8= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20240507052349epcas5p46bd9f56be2888b628cd91add6763f454~NHXbV55eN0641106411epcas5p4I; Tue, 7 May 2024 05:23:49 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.179]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4VYRX40d2cz4x9QF; Tue, 7 May 2024 05:23:48 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id DB.96.09665.3EAB9366; Tue, 7 May 2024 14:23:47 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240507052214epcas5p351e1ff563e3d62bf1fff305dccc1905c~NHWCwn0zA2998529985epcas5p3f; Tue, 7 May 2024 05:22:14 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240507052214epsmtrp2e601e6ceb4c3eddd58d0bb9ddc50a35e~NHWCv7nyU0876208762epsmtrp2t; Tue, 7 May 2024 05:22:14 +0000 (GMT) X-AuditID: b6c32a4b-5cdff700000025c1-e7-6639bae3e951 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 66.D4.08390.68AB9366; Tue, 7 May 2024 14:22:14 +0900 (KST) Received: from testpc118124.samsungds.net (unknown [109.105.118.124]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240507052213epsmtip21f1e5c1752b1be67e1da93dc2a912ef9~NHWB2xYii1163211632epsmtip2X; Tue, 7 May 2024 05:22:13 +0000 (GMT) From: Chenliang Li To: axboe@kernel.dk Cc: asml.silence@gmail.com, cliang01.li@samsung.com, gost.dev@samsung.com, io-uring@vger.kernel.org, joshi.k@samsung.com, kundan.kumar@samsung.com, linux-kernel@vger.kernel.org, peiwei.li@samsung.com Subject: Re: [PATCH] io_uring/rsrc: Add support for multi-folio buffer coalescing Date: Tue, 7 May 2024 13:22:03 +0800 Message-Id: <20240507052203.67459-1-cliang01.li@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <71c1f01f-f740-43b0-9962-afcf08cab686@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMJsWRmVeSWpSXmKPExsWy7bCmpu7jXZZpBvseyVvMWbWN0WL13X42 i9N/H7NY3Dywk8niXes5Fouj/9+yWWz98pXV4vKuOWwWz/ZyOnB67Jx1l93j8tlSj74tqxg9 Pm+SC2CJyrbJSE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvM AbpESaEsMacUKBSQWFyspG9nU5RfWpKqkJFfXGKrlFqQklNgUqBXnJhbXJqXrpeXWmJlaGBg ZApUmJCd0bRrL2tBG0fF1Fvn2RsYl7B1MXJwSAiYSLw6qdjFyMUhJLCbUeLO/p/sEM4nRomu s0fZIJxvjBJHd85jhel4eIwLIr6XUeLI/2tQHb8YJSbO+MfUxcjJwSagI/F7xS8WEFtEQFhi f0crC0gRs8BpRol9R3+wgSSEBYIlDrW/ALNZBFQlep6tB2vmFbCRaGvYDBaXEJCX2H/wLDOI zSlgK7H1z2d2iBpBiZMzn4AtYAaqad46mxlkgYTAR3aJVb19TBDNLhIzHx6HGiQs8er4FnYI W0ri87u90AAolli2Tg6it4VR4v27OYwQNdYS/67sYQGpYRbQlFi/Sx8iLCsx9dQ6Joi9fBK9 v59AreKV2DEPxlaVuHBwG9QqaYm1E7YyQ9geEouX34EG6QRGiaU991gnMCrMQvLPLCT/zEJY vYCReRWjZGpBcW56arFpgXFeajk8lpPzczcxglOnlvcOxkcPPugdYmTiYDzEKMHBrCTCe7Td PE2INyWxsiq1KD++qDQntfgQoykwwCcyS4km5wOTd15JvKGJpYGJmZmZiaWxmaGSOO/r1rkp QgLpiSWp2ampBalFMH1MHJxSDUw6DWvfa/IkSTbd9nRUi7vyokz65Iq6yx/P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K1CdhVa2syY+c3P/Nr7wT 8+7q5jm5B2cdXNq8I3TZ9P+eNzf3f4idccrhT4Kw/8l253tHNpfMX/0kwej0mXveP1n1rTqO 6M69HB6XdGBK5o8eZpe6sN9cMjWb/Z6aPmYI2nRs18tMvWvnlUuX5NZ63bzcpPPlzutVy5ya /q3eZJMY0qP58/7X4y+zql55yGWm2f26UZp8STfZSt+2tr3yh9bUSUdilFiKMxINtZiLihMB IMa+5twCAAA= X-CMS-MailID: 20240507052214epcas5p351e1ff563e3d62bf1fff305dccc1905c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240507052214epcas5p351e1ff563e3d62bf1fff305dccc1905c References: <71c1f01f-f740-43b0-9962-afcf08cab686@kernel.dk> On 5/6/24 6:57 AM, Jens Axboe wrote: > Can you add some justification to this commit message? A good commit > message should basically be the WHY of why this commit exists in the > first place. Your commit message just explains what the patch does, > which I can just read the code to see for myself. > > As it stands, it's not clear to me or anyone casually reading this > commit message why the change is being done in the first place. Thank you for the instruction. I'll submit a V2 patchset with better commit message. > Outside of that, you probably want to split this into two parts - one > that adds the helper for the existing code, then one that modifies it > for your change. We need this to be as simple as possible to review, as > we've had a security issue with page coalescing in this code in the > past. Will split this in V2. > Minor comments below, will wait with a full review until this is split > to be more easily reviewable. Thank you for the comments. Will address them in V2.