From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 177CFC43334 for ; Wed, 29 Jun 2022 14:46:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233444AbiF2OqQ (ORCPT ); Wed, 29 Jun 2022 10:46:16 -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-Google-Smtp-Source: AGRyM1txT+ZrMJMVvS17lAeyoRx8ZbEgcY9VSKMzGxNQfGMabIPYccYJ3vWeq2XeiFbRWpBUViDJ+A== 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 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