Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5918836pxj; Wed, 23 Jun 2021 11:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoNVUgdh3K/K4ajfDPur4YIxo+7/Wxih6tLqzo2+gx4lOA/40FteELKLJsRo+ezmgWf/or X-Received: by 2002:a5e:d616:: with SMTP id w22mr788704iom.75.1624474254847; Wed, 23 Jun 2021 11:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624474254; cv=none; d=google.com; s=arc-20160816; b=HLSAbB/zhakLO3C6dDoTQLyOhKSyRkdfXzVZy5F8b2EbvwJWdxT8ObpcZ3gvbydYig BImtBn2eVnAF6dHQs88rFRRValMFmpZ7kfbEjl2pEtz2G6U/BXsAPrWUHkffirOWt+wA FIlpbOFfguesqhfpG+0Oddv7vK/sOTGoPMrpDzMdAJ9nyO+3Yt7RdMN4kWx5U6hAFiH7 cnGK4YkzoYPxHwvcb6LNeKH6NoLjInpXo440lSqN8/x1cG6AaVFHmM5lfiCU9cDUsic6 ekbq2oBvx0xZEJIiUD4Hjzil4+BDpowBQ9xiFgeVlbZR7wkyOQ29ddqIxp24y3slC0XD fMYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:message-id:cc:to:from:date; bh=P0MtAtlapCzh/RTTuktEypldkStEc295VOs1/MgG6n8=; b=Rh7Fr9gdxrQ7neagZvymDt9KeBnwX+211S3mCOMFJjJjKhv1MvcQ2FZ6E3qHpLA3gZ j8mZ4mWrdKQi48uTCcmqAtfjXfybSLM99QTJr7Rzekidl0GOK8lk0CCH0lHDLKEGAIJY IHadeRne6/Ekgc+I3n+6ngyhIQAcTTtpdETTKmplOep6aZ0wQFrgkYLCroGCx0xu0cl5 GhF7ubbagB0E3l+HpIAgDnqtOePQgfP6XWnrzA4mhAMeo292sljWe9NfNBgh46p56uyN 9p//Qdhyv6hB92N4Q850PKw6oW9aalv7J0ZFxS6HJGm7oqmTRKj9iO0A4C7V4eIUH8NA vjTg== 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 g2si994943ioo.75.2021.06.23.11.50.42; Wed, 23 Jun 2021 11:50:54 -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 S229938AbhFWSw0 (ORCPT + 99 others); Wed, 23 Jun 2021 14:52:26 -0400 Received: from cloud48395.mywhc.ca ([173.209.37.211]:40826 "EHLO cloud48395.mywhc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhFWSwZ (ORCPT ); Wed, 23 Jun 2021 14:52:25 -0400 Received: from [173.237.58.148] (port=33334 helo=localhost) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lw7ws-0008Gz-Ih; Wed, 23 Jun 2021 14:50:06 -0400 Date: Wed, 23 Jun 2021 11:50:04 -0700 From: Olivier Langlois To: Jens Axboe , Pavel Begunkov , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Olivier Langlois Message-Id: Subject: [PATCH v2 0/2] Minor SQPOLL thread fix and improvement 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 I have been investigated a deadlock situation in my io_uring usage where the SQPOLL thread was going to sleep and my user threads were waiting inside io_uring_enter() for completions. https://github.com/axboe/liburing/issues/367 This patch serie is the result of my investigation. Olivier Langlois (2): io_uring: Fix race condition when sqp thread goes to sleep io_uring: Create define to modify a SQPOLL parameter fs/io_uring.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.32.0