Message ID | 1445461129902f506c46645d8659f78bd5b35008.1677041932.git.asml.silence@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp613952wrd; Wed, 22 Feb 2023 06:42:22 -0800 (PST) X-Google-Smtp-Source: AK7set+qXWVeMKs1+ZeN8JmwPsNxWji2Hm/i4HPKnyrHxJ9cxld1g3cyT5HC/UjWeFQK2Uiq4gym X-Received: by 2002:a05:6a00:1bcc:b0:5a8:a464:4fe3 with SMTP id o12-20020a056a001bcc00b005a8a4644fe3mr5356038pfw.0.1677076941923; Wed, 22 Feb 2023 06:42:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677076941; cv=none; d=google.com; s=arc-20160816; b=YnYiNz3B8Nr3Fx6wyvUc3JjACgri8gxXd5aWqUCD0FE4tNNpGp0hOwX2AtoMEPfhYL GT73fQq/gOAQ+F25zn5WbSVl//oBhwqMyR4HvIAP6BvVfzlNI9oDlY0HMaa6oIgeciYT kWWMZ3hXJkm1Hs5JIuSaZrEsd59SDadUw4IVjrjesjFzdR0u/wrvBQhe9pyqGJF1zI4O cOFKTa1oU45wGvwWh/ESEfWB8JDdynQhME8lpN2BJ0/6pD6DfVugZ5tU1BGLlrS2x6yM 71g972Jy9fFEoc3s5lbEWj6DcMKAWmuyTvSaEdCgQ+jD8eNEcozs+vcpOQOAwxyinK1f V06Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aLlCzWw1AssfjgBXmFlk8NMc2CPaZuoh5Bi4Ozm/gs0=; b=zDRRf13mE2dzvmkJEnqH478zfvU/PCwgIGupzn6923B/tbW+UVP4BBVzySJyf7frJy RglMAqphN+Nmg/sN/hIr13Pv9hoH0gav6r+gGtWW9ttN0NwTixULCqtk0dov1m5fUy/s YzML25DdB0n2yRaXFiNaZtDEeK2lmGTLWuf0/oExpptXCnHU/bCrFdQNUJxrLDBGoVKw Pl0841Bg6+2J6GTruux3jdKm82/6BbeuMxhsDA/2mmUdUJkxoFXtDkuowhbNyYAZ72Lk ayyjc3F5iUDlXGasc/vssiFlqjRoHbOVr/1bO/wXFDYBFBgehJVqMrPTxtyhGU/sswm2 pR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="l/ttigjx"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca27-20020a056a00419b00b0059072f087b7si8374166pfb.135.2023.02.22.06.42.09; Wed, 22 Feb 2023 06:42:21 -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=@gmail.com header.s=20210112 header.b="l/ttigjx"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231984AbjBVOj1 (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Wed, 22 Feb 2023 09:39:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbjBVOjU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Feb 2023 09:39:20 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A060F37B65; Wed, 22 Feb 2023 06:39:19 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so664333wms.2; Wed, 22 Feb 2023 06:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aLlCzWw1AssfjgBXmFlk8NMc2CPaZuoh5Bi4Ozm/gs0=; b=l/ttigjxsKa3YvoIQjINVBOoNPeK2/2BaOf/7PSu4DdWgzHhBKsJ+2ouhN4H2YXXqX LF475KPpC6+x1VOtBOjoUhvEsX5sOpizb4nSzJKBP1DK4Rq/ZQSaQ8Gio2IkjZD3svXP kzdzDQlDePQKDlDzrsyY0EwMiZKmconuJ464dYSKlomNQmuGfwCtLgM2y1jhP4CAvejq cGuk5kKw10CVAXzevFhF9wMm6ykyxMuXacliu6YH4Emh9K7PNmbntQNkMwGchde7Ymyf vmJMvN0FUNqzAqBe2rbeS7mt04v+uXAXBcYtBDVk2kcTmj2V0walKtKGtiZopb98lX1f GBHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aLlCzWw1AssfjgBXmFlk8NMc2CPaZuoh5Bi4Ozm/gs0=; b=65piNaVGrBTes1XJDzoRz7hPvIeW9a6t7cXbcFs4q4cH0u+ibfoLyDVy9srDkRn4fI gJRDfCICKTyUOWbGlymLKK94Va7oGkt9ohGWS324Uie7bhblU+HR+DwMwB1G5vtsok7N zhCk6HiUyzidHsLBhQAYwkta6En65dIqOG1dL8vJsqC7yD2B6iWmK+jagiJL8cSdyoSl TbBIh6xmuEEyerbfmbh/AZFiVIVcCRtPDtG/g1JAf2dCJX8G2EYTXZqHNgRZYLSC+SsZ UBF9OSu7GqFKPsxmj2Uluq0Wfl6+uddlysZh2QFjhQDpl+v8AUSpE7Jj5pg286cED+v+ ntZg== X-Gm-Message-State: AO0yUKVDTOxtQcAEdcFyjZvmn9y59Mb8bJ52aMYXmJdKc/GN7xQgINbB n832jbIa7HOgqpafpqnufIUok88cLd0= X-Received: by 2002:a05:600c:3d8c:b0:3e0:c5e:ad78 with SMTP id bi12-20020a05600c3d8c00b003e00c5ead78mr6031015wmb.7.1677076758017; Wed, 22 Feb 2023 06:39:18 -0800 (PST) Received: from 127.0.0.1localhost (94.196.95.64.threembb.co.uk. [94.196.95.64]) by smtp.gmail.com with ESMTPSA id o2-20020a5d4742000000b002c59c6abc10sm8151735wrs.115.2023.02.22.06.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 06:39:17 -0800 (PST) From: Pavel Begunkov <asml.silence@gmail.com> To: io-uring@vger.kernel.org Cc: Jens Axboe <axboe@kernel.dk>, asml.silence@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH for-next 2/4] io_uring/rsrc: fix a comment in io_import_fixed() Date: Wed, 22 Feb 2023 14:36:49 +0000 Message-Id: <1445461129902f506c46645d8659f78bd5b35008.1677041932.git.asml.silence@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <cover.1677041932.git.asml.silence@gmail.com> References: <cover.1677041932.git.asml.silence@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758542631588499518?= X-GMAIL-MSGID: =?utf-8?q?1758542631588499518?= |
Series |
io_uring: registered huge buffer optimisations
|
|
Commit Message
Pavel Begunkov
Feb. 22, 2023, 2:36 p.m. UTC
io_import_fixed() supports offsets, but "may not" means the opposite.
Replace it with "might not" so the comments rather speaks about
possible cases.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
io_uring/rsrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index 8d7eb1548a04..53845e496881 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -1338,7 +1338,7 @@ int io_import_fixed(int ddir, struct iov_iter *iter, return -EFAULT; /* - * May not be a start of buffer, set size appropriately + * Might not be a start of buffer, set size appropriately * and advance us to the beginning. */ offset = buf_addr - imu->ubuf;