Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4974632pxj; Tue, 22 Jun 2021 12:09:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaQ/CwNf18PQzYlQhMmPT+OHeUzetOQbCFu3B99LBFlEezBaPvyD+iwLvqva95NmYfGn8P X-Received: by 2002:a92:290f:: with SMTP id l15mr140332ilg.220.1624388940351; Tue, 22 Jun 2021 12:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624388940; cv=none; d=google.com; s=arc-20160816; b=PVSiUifBeZsFL6OiirEX+DslBisXrOfHCkgJbgzLwxrQluEgW3/sWK3cPRQgINRnBj lKNhODFKiquUTNHLRRzdUmV4j/Au3hHset1Muw3IUl4w9XaTF5o1e+oMp8+vJLZtuvY9 akd2jdmtLUXL1LrKNehfIq9e9a+BsUG77r/+TZ+lOEyISG4A+UT+T4gZcNK/XzMuU1MF C0VVjpSXo653KAoUjdcggNFBaqU2jqgoeCCoPiDSOPTGEUMLggcNpeA6bUW9EDb5iZBh 23ucJ87CzD4l1092JCuL8Xv4OcjvjDUeC3fJVSytKWMOhLDf4BfXpTWU2i367WInsG8S lp4Q== 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 :user-agent:organization:references:in-reply-to:date:to:from:subject :message-id; bh=mhx1s0+PYARirsmg3b3oBbkRdqvSf52CTKMkZN8pHAo=; b=X8u9XdQFjfQzv/J+QYruspfmt1CsnOt/jseM4KF25c2FRALcp9CuS5hZHktYy85Hhz Bu7KQ1pgDjcbHKTMPSzLKZYpThF89K5AMxvJrbUi7MfFyhgzf0uoubuCPq7ISNkYRK95 4PLQKdnAXWDTRDG0nRSvGRVnKKElNxM+abjz1Km/huutOydFSSY5hZ5IbGdAgW/81N9M aaW3TFOF+hKGsf27rnI7nfy1nfqG+AWGkr1lbiljGCCVTCIZLF1CuuHs2bWb8cIQu6Uw +miRo93z+zuokx6xOkGIwXCnSrKpxAGvGThtmgAsj+MxuNGm/vfU8v9u+9ckwbUBubXM B28Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si278175jat.6.2021.06.22.12.08.48; Tue, 22 Jun 2021 12:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbhFVTKQ (ORCPT + 99 others); Tue, 22 Jun 2021 15:10:16 -0400 Received: from cloud48395.mywhc.ca ([173.209.37.211]:59542 "EHLO cloud48395.mywhc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232726AbhFVTKN (ORCPT ); Tue, 22 Jun 2021 15:10:13 -0400 Received: from modemcable064.203-130-66.mc.videotron.ca ([66.130.203.64]:33444 helo=[192.168.1.179]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lvlka-0003JN-8N; Tue, 22 Jun 2021 15:07:56 -0400 Message-ID: Subject: Re: [PATCH 1/2] io_uring: Fix race condition when sqp thread goes to sleep From: Olivier Langlois To: Pavel Begunkov , Jens Axboe , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 22 Jun 2021 15:07:55 -0400 In-Reply-To: References: <67c806d0bcf2e096c1b0c7e87bd5926c37231b87.1624387080.git.olivier@trillion01.com> Organization: Trillion01 Inc Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - trillion01.com X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@trillion01.com X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@trillion01.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-06-22 at 19:55 +0100, Pavel Begunkov wrote: > On 6/22/21 7:53 PM, Olivier Langlois wrote: > > On Tue, 2021-06-22 at 11:45 -0700, Olivier Langlois wrote: > > > If an asynchronous completion happens before the task is > > > preparing > > > itself to wait and set its state to TASK_INTERRUPTABLE, the > > > completion > > > will not wake up the sqp thread. > > > > > I have just noticed that I made a typo in the description. I will > > send > > a v2 of that patch. > > > > Sorry about that. I was too excited to share my discovery... > > git format-patch --cover-letter --thread=shallow ... > > would be even better, but the fix looks right > You are too good... I thought that I could get away from hacking manually the patch file for such a minor change... It seems that I got caught... Let me know if you need me to redo it the right way...