From patchwork Fri Aug 25 09:09:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 13365251 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 6B366C88CB2 for ; Fri, 25 Aug 2023 09:12:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbjHYJLx (ORCPT ); Fri, 25 Aug 2023 05:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244116AbjHYJL3 (ORCPT ); Fri, 25 Aug 2023 05:11:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77AB1BDB for ; Fri, 25 Aug 2023 02:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692954638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=a+pGH+z7QUdI0m+ykxwJUuvoAK3X6BtRIZS4sAYva04=; b=Tyx6rYkpTyKhmh8c6/0twqJo/Vx8XGVxjLA82v12sKFKgCrZNT9J/QpjHYc7LJwSkhwyVF vIbX6OR/B4034K56BngtsmuqOlNSlynFySuz3ivWQrwqtezizcJ4vGOAzfsrh+ra1fbmzJ 2+BUw+uB4iGl8QzEHB/OFzwPDhPpsgY= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-441-eVymPfdkMtKD4-Kl57CkSQ-1; Fri, 25 Aug 2023 05:10:33 -0400 X-MC-Unique: eVymPfdkMtKD4-Kl57CkSQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BB54228040D4; Fri, 25 Aug 2023 09:10:30 +0000 (UTC) Received: from localhost (unknown [10.72.120.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6B202026D76; Fri, 25 Aug 2023 09:10:29 +0000 (UTC) From: Ming Lei To: Jens Axboe , io-uring@vger.kernel.org, linux-block@vger.kernel.org Cc: David Howells , Chengming Zhou , Ming Lei Subject: [PATCH 0/2] io_uring: fix IO hang in io wq exit Date: Fri, 25 Aug 2023 17:09:57 +0800 Message-Id: <20230825090959.1866771-1-ming.lei@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hello, The 1st patch add one helper, and the 2nd one fixes IO hang issue[1] reported by David Howells. [1] https://lore.kernel.org/linux-block/3893581.1691785261@warthog.procyon.org.uk/ Ming Lei (2): io_uring: add one helper for reaping iopoll events io_uring: reap iopoll events before exiting io wq io_uring/io_uring.c | 27 +++++++++++++------- io_uring/io_uring.h | 1 + io_uring/tctx.c | 60 +++++++++++++++++++++++++++++++++++++++------ 3 files changed, 71 insertions(+), 17 deletions(-)