From patchwork Fri Sep 1 12:03:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengming Zhou X-Patchwork-Id: 13372477 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 A7741CA0FE1 for ; Fri, 1 Sep 2023 12:04:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235985AbjIAMEO (ORCPT ); Fri, 1 Sep 2023 08:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbjIAMEO (ORCPT ); Fri, 1 Sep 2023 08:04:14 -0400 Received: from out-240.mta1.migadu.com (out-240.mta1.migadu.com [95.215.58.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2284091 for ; Fri, 1 Sep 2023 05:04:11 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1693569849; 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=aPzD27O+rmaWG0GJE07A/fVAM3U3LHBfOe+kpNzB4EE=; b=a9Rk93lqeqlBVXErfMyXhpBTV29nyoxj6EX4GcL9vlEPi6Z9GrZDZU7ufhriwN+JxshOef ByjMYSLspDESegVViu8cEXDHIi0dN/uszlf9RcdLW69Z0sbvUaFkkcg3KXS3kML3KHIu4l EVXVAG/YzKxiI8TqUQqaZSDO12l0tNM= From: chengming.zhou@linux.dev To: axboe@kernel.dk, ming.lei@redhat.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, zhouchengming@bytedance.com, dhowells@redhat.com Subject: [PATCH v2 0/1] block/null_blk: fix poll request timeout panic Date: Fri, 1 Sep 2023 20:03:05 +0800 Message-ID: <20230901120306.170520-1-chengming.zhou@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Chengming Zhou Changes in v2: - Improve the commit message a little. - Add Tested-by from David Howells and Reviewed-by from Ming Lei. The 't/io_uring -n4 /dev/nullb0' is easy to trigger poll request timeout, then panic the kernel. This patch just fix the kernel panic problem in null_blk driver, the io_uring poll request timeout problem is fixed by Ming Lei [1]. [1] https://lore.kernel.org/io-uring/20230825090959.1866771-3-ming.lei@redhat.com/ Chengming Zhou (1): null_blk: fix poll request timeout handling drivers/block/null_blk/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)