Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp697462iog; Wed, 29 Jun 2022 08:26:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubjsZioRDTRjHDVKYWLn9m0JZPc0k5N+AMhoVXnRj7LFGOSOT5DVghhxDpP2ON3kAqv4uJ X-Received: by 2002:a05:6402:510a:b0:435:bcb8:756d with SMTP id m10-20020a056402510a00b00435bcb8756dmr4747557edd.277.1656516415968; Wed, 29 Jun 2022 08:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656516415; cv=none; d=google.com; s=arc-20160816; b=itzzD/TNEW1UzqXh0TgBSTiFArFL3GfbNo4i24RYu9pAnu8/CAXtJoWpCZRHOzqr0Y j05h+OaDhyKGR2ZYJss8/9MLzDsk3Vqsdl3clS4G1A5O6fNS9rogIOWWFQNprjSo++lo 7Rcc0KEGBW2AA4Gg5XqeIgTBxVBtL7EOdb76KVGmRojjbE6CbXoLcDq5tLokXHcv12u7 grFVIVgCSC4gsQ5cYWA+6MgEYrs4J8cqWmR64HXjI8/GVKxpSw2Rtxxn9DUkVnWlFa7N 76MX7x08ICDwcyy3sLgkKWSzSjBiaT/iInSJAo9FVpD2ksveK/zP3AbvVRzQKlw1j9/Y U65Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eL3eeC0Iob2m/nwMP0RJ7jXcLHDbzdzqLETnK8JIhg8=; b=eIky6RwE+ntzVSZxIxCf7YSqxNoOuoMdbFIzhto7nCYAb+/cqmpc186IgGPGT8VkGl UMfJHC+hjbgVEoA5lU21NqfdHwS4gXSgbPSiyjyxGUd5xxXwfZWTSb1MMklQC5O5ZhWi btR0dsWjKbGcNtNj3FNLf2lN3hsoP9qC5RlUx/fdMYqgwEmvZ9mW8E6zZp97w+LEiUuq 5HL4z0ni8o4e+2z17BsIT4ndAQAXxea9Bv5rAFEsH3Ur19FXZY8c+C7hHgpjIFpzrto9 tRQH6N/8lBgJuHx0CfqwkMyBU3HJSx8+uSdrYYF5VET9S2Wok5kBPRpy4S9E10mov4w7 doPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=wn1IOiId; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a170906748700b006feb0e0856dsi16954047ejl.653.2022.06.29.08.26.28; Wed, 29 Jun 2022 08:26:55 -0700 (PDT) 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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=wn1IOiId; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233394AbiF2OqP (ORCPT + 99 others); Wed, 29 Jun 2022 10:46:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232618AbiF2OqO (ORCPT ); Wed, 29 Jun 2022 10:46:14 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C1432047 for ; Wed, 29 Jun 2022 07:46:13 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id g7so10869931pjj.2 for ; Wed, 29 Jun 2022 07:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=eL3eeC0Iob2m/nwMP0RJ7jXcLHDbzdzqLETnK8JIhg8=; b=wn1IOiIdLB96SV/KFiypk3XqUMeDeWe89LZppFNyPQACPUd7wQhLebIRJyETZvVibd 4apEyr2vHax4+WUMR42l1c60+TGZQLoXBmzDvlVogi1qy/Y82yN4v5fZ0Lm6XwWbX4tL WFXcR28zqN/+eRq2l4UUzb84RJlqydnCekMqV/bGwYL4RRx58m4UP9qEO1QAmi+vJPdM cSS74j8ICMUat9OTrpacztZ0yhV2XnNk7V50XedxZ7i+mYrSeTrc51S5WR/WdZSwgYI+ tyJZmZyKsCYt8gbd16qRWPX8hkXdsGHOEhNb4+h6Gamvmxnw4L4UjOJfCuCIKJsAo8oq lIkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=eL3eeC0Iob2m/nwMP0RJ7jXcLHDbzdzqLETnK8JIhg8=; b=tR8TjsUjJcCOXomvp0IdjATHn3hRgP+ElS9U9l75DQ3qWPDx9k+/wBT87uQrEY0lil UJtm/0ZxCtbVc4qvsWl6qpKez74UwW/edCidOfyup1+j5S173hSlLOPsAXG7WSgenIds fJLIoJGdLlSlcONAeYaZhlXxvxI8ayucxNSJdLX27ME/hBxxxRkHjBJbGSbboDk3vGpE AmV/DlNh6cVQonlKCrqOXpOHfrh/OJE75i/2KXZg4Gm+3BRsfQNusk1qCEEDI8CAnfmp djG432rDCkGhIM81y7DTDYJyCFBRXCkHLKfv3Go9I5C9REcExdxPkrOaVwAFP3iJ0FXL IQyA== X-Gm-Message-State: AJIora80humhq8sPBOpV3V9SYPQYLm/JSZXzO58OvWDspuAbOhad6xoz ljL7VbTfb1QDutKMZn7ZhTw0pg== X-Received: by 2002:a17:90a:68cf:b0:1ee:db09:739b with SMTP id q15-20020a17090a68cf00b001eedb09739bmr4177688pjj.179.1656513972832; Wed, 29 Jun 2022 07:46:12 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id mn9-20020a17090b188900b001ec9d45776bsm2238350pjb.42.2022.06.29.07.46.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 07:46:12 -0700 (PDT) Message-ID: <4768f72e-6c23-b2ac-d446-b69ded9c19a1@kernel.dk> Date: Wed, 29 Jun 2022 08:46:11 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] io_uring: fix a typo in comment Content-Language: en-US To: korantwork@gmail.com, asml.silence@gmail.com Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Xinghui Li References: <20220629144301.9308-1-korantwork@gmail.com> From: Jens Axboe In-Reply-To: <20220629144301.9308-1-korantwork@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 6/29/22 8:43 AM, korantwork@gmail.com wrote: > From: Xinghui Li > > fix a typo in comment in io_allocate_scq_urings. > sane -> same. > > Signed-off-by: Xinghui Li > --- > fs/io_uring.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/io_uring.c b/fs/io_uring.c > index d3ee4fc532fa..af17adf3fa79 100644 > --- a/fs/io_uring.c > +++ b/fs/io_uring.c > @@ -12284,7 +12284,7 @@ static __cold int io_allocate_scq_urings(struct io_ring_ctx *ctx, > struct io_rings *rings; > size_t size, sq_array_offset; > > - /* make sure these are sane, as we already accounted them */ > + /* make sure these are same, as we already accounted them */ > ctx->sq_entries = p->sq_entries; > ctx->cq_entries = p->cq_entries; That's not really a typo, though I can see why you'd think so. It's trying to say that we need to ensure that the ctx entries are sane, as they have already been accounted. This means that if we teardown past this point, they need to be assigned (eg sane) so that we undo that accounting appropriately. -- Jens Axboe