Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp472039lqk; Sat, 9 Mar 2024 21:13:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0lnC2uAqjDboBv/LZ5TSfwkCQslrkHmi66W2gIMHRYWbEI/2ENOBtmB4fh//iKVEkZvphrMZNjVa/jhIiDjNC/CMnu3izUx+xjEmBIQ== X-Google-Smtp-Source: AGHT+IHHpD4Rv2P7G72YH+NEdLRDUxhBK5IWaXz244VX+YlJccn+2GE3lPrt6zTeVLJ+SAKS0+ZD X-Received: by 2002:a17:902:8688:b0:1db:9fa2:3408 with SMTP id g8-20020a170902868800b001db9fa23408mr3067901plo.42.1710047614433; Sat, 09 Mar 2024 21:13:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710047614; cv=pass; d=google.com; s=arc-20160816; b=I5hbHwVLKFelMpfaUlyAgrvIODDYtcQdwlwWBYx2hhyRAZnPCsvCwP/JZzjEztf7h+ f3ePtfD79I+C1L6dcVFXVL+Sr0YcgwuFI3oJmtS5QZPO179m/cpHKAAX+opSqWOqA1YR QZFVd/cYzJnRgsjx+B0Yg+zxtB3AR6DHzl5gZMBnmrbkm6gFbq3hYkUZbxZ4VznAvHRB 88sgzhxsfjgEg2z3CuPADgXrZGRemlkHsP0BjBOIXjHBOpqQsaQP/OrkPvKvN8Gm+HHz aP30cn/JCXHXSYElLtKW1R8zrDvpviiwwITsQ7GS4VcfizzSjxu4LuiK+PA+teHkgNmZ iosA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=w5RhIat3cVeSw5iGnaflty1U4Kd5aUaXoJYaNdQwBJA=; fh=shdxz+P9glMb+BXAKl/VTJZb4kqyyOziY53Nnwu6418=; b=oc/BP868crvbjR48bP0CiQnRf0UYwRRo+AADEC9W7zPBLzdN7Ops4h79pZNOe0FV+J PSUbJCSweV95i2LK1bi9fC3Ryn+UY7Nri6U2xfYg8zj+OoOqrfeqqLOClooFhOzCOC7b cTvlOHZ3vJdPXEgb25sBXcEiLYazxD/p8L/NUWdfvotfGnDwUAT8i+EzbergiIiFed0v yIQRZsiKXvbM6xMAp0RkL6oRAee7IUFcyqYLQTJU/M7ss/k2rjLYJmMSWiO+ZA/c/vpx GqVrstEKIxcY62dA6hij89BvGmu0TAfagpBXp+gOVaodJs2yaJbi41YkKE1BHcn3m8R+ /B7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@danm.net header.s=sig1 header.b=HSuH3Roe; arc=pass (i=1 spf=pass spfdomain=danm.net dkim=pass dkdomain=danm.net); spf=pass (google.com: domain of linux-kernel+bounces-98120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98120-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p2-20020a170902e74200b001dc67d1c03dsi2530933plf.298.2024.03.09.21.13.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 21:13:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@danm.net header.s=sig1 header.b=HSuH3Roe; arc=pass (i=1 spf=pass spfdomain=danm.net dkim=pass dkdomain=danm.net); spf=pass (google.com: domain of linux-kernel+bounces-98120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98120-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1F46C282625 for ; Sun, 10 Mar 2024 05:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40C5B111A8; Sun, 10 Mar 2024 05:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=danm.net header.i=@danm.net header.b="HSuH3Roe" Received: from mr85p00im-zteg06011501.me.com (mr85p00im-zteg06011501.me.com [17.58.23.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A945816FF5C for ; Sun, 10 Mar 2024 05:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=17.58.23.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710047607; cv=none; b=IBe9En6nL7uw3YIr2tMVGscri5SmUIXReMWy4k4ArIv0PW/YlRwslzyjRwmkT1/TNuTuVqB4ChV9rgglEKgl5ed1qFX2Mz59s5O3jKgECCzo6Wm9edIvzKsQ0upv1hNZJSmevnou9hjK+44D87EkFrtC0m7H4k2BFiEs1A0rDHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710047607; c=relaxed/simple; bh=T6XjRhnGO6nIaTDzl99aOQ6bUYJdL4xvjrQ7ZIMu54s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fi4qNo24nCbT6qvVTC1pArqpJs+PsFD5+rTbfPa9qMKR51Wl90UU8qQDfx5U1enk2u0tSE5papgPQqt7srih/jdfkxstk34C9/PpQZdcAs/zDjnJUVReglF6GkTxSNnHodZAsXYVj39gXL9b/HMBkXta6ymZduHkwsB816iCyOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=danm.net; spf=pass smtp.mailfrom=danm.net; dkim=pass (2048-bit key) header.d=danm.net header.i=@danm.net header.b=HSuH3Roe; arc=none smtp.client-ip=17.58.23.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=danm.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=danm.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danm.net; s=sig1; t=1710047604; bh=w5RhIat3cVeSw5iGnaflty1U4Kd5aUaXoJYaNdQwBJA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HSuH3RoerZbtH1tXsy/ZzNESP80YvZeB7v60YYjpz4+FBKQjP4C21DxYFGdREgCcN TCAm+JqJbfo8mnvYAAJr0ACqBB5ifQTLtaH3zAR68L/X6/LfmmMM9FO0ROkwAQ3x+n YGb1unOUgwznjUkp7C2N4mMI2hcL15hF7KZT3kohMDpBJamDofMZ+ajsLfJZz+tHos d01NXUxwMtiF/tfYpUjMiTOup+QGhAg9bfbSBvBBT+VS2rFgLDUXlfnm9XkNKb/2Nv qrIGw8KrpFTemMPCR211U+pfiKDNuPpNEHyRIcmVFowh1PfaAelTkSl2uQR7utAdb3 EUrmHFASJ/5zg== Received: from hitch.danm.net (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06011501.me.com (Postfix) with ESMTPSA id 1AF6748012F; Sun, 10 Mar 2024 05:13:22 +0000 (UTC) From: Dan Moulding To: junxiao.bi@oracle.com Cc: dan@danm.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, regressions@lists.linux.dev, song@kernel.org, stable@vger.kernel.org Subject: Re: [REGRESSION] 6.7.1: md: raid5 hang and unresponsive system; successfully bisected Date: Sat, 9 Mar 2024 22:13:21 -0700 Message-ID: <20240310051321.9812-1-dan@danm.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: VCMOOETFy1S8Cuqw7AMi3jOVnDROoe4i X-Proofpoint-ORIG-GUID: VCMOOETFy1S8Cuqw7AMi3jOVnDROoe4i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-10_02,2024-03-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 malwarescore=0 mlxscore=0 bulkscore=0 clxscore=1030 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2403100041 > Dan, can you try the following patch? > > diff --git a/block/blk-core.c b/block/blk-core.c > index de771093b526..474462abfbdc 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -1183,6 +1183,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool > from_schedule) > if (unlikely(!rq_list_empty(plug->cached_rq))) > blk_mq_free_plug_rqs(plug); > } > +EXPORT_SYMBOL(__blk_flush_plug); > > /** > * blk_finish_plug - mark the end of a batch of submitted I/O > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c > index 8497880135ee..26e09cdf46a3 100644 > --- a/drivers/md/raid5.c > +++ b/drivers/md/raid5.c > @@ -6773,6 +6773,11 @@ static void raid5d(struct md_thread *thread) > spin_unlock_irq(&conf->device_lock); > md_check_recovery(mddev); > spin_lock_irq(&conf->device_lock); > + } else { > + spin_unlock_irq(&conf->device_lock); > + blk_flush_plug(&plug, false); > + cond_resched(); > + spin_lock_irq(&conf->device_lock); > } > } > pr_debug("%d stripes handled\n", handled); This patch seems to work! I can no longer reproduce the problem after applying this. Thanks, -- Dan