From nobody Sat Feb 7 02:11:34 2026 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 3C980C433FE for ; Fri, 25 Nov 2022 03:15:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiKYDPt (ORCPT ); Thu, 24 Nov 2022 22:15:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiKYDPq (ORCPT ); Thu, 24 Nov 2022 22:15:46 -0500 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D8023EA2 for ; Thu, 24 Nov 2022 19:15:41 -0800 (PST) Received: from ([60.208.111.195]) by ssh248.corpemail.net ((D)) with ASMTP (SSL) id TEO00134; Fri, 25 Nov 2022 11:15:34 +0800 Received: from lihongweizz00.home.langchao.com (10.93.221.219) by jtjnmail201611.home.langchao.com (10.100.2.11) with Microsoft SMTP Server id 15.1.2507.12; Fri, 25 Nov 2022 11:15:34 +0800 From: lihongweizz To: , , CC: , , Rock Li Subject: [PATCH] ocfs2: properly clean task pointer before o2hb thread exits abnormally Date: Fri, 25 Nov 2022 11:15:22 +0800 Message-ID: <20221125031522.339-1-lihongweizz@inspur.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.93.221.219] tUid: 2022112511153408350572528650079766ee080579aa08 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rock Li in case o2hb thread exits abnormally before stop o2cb service, heartbeat_drop_group_item will try to stop a noexit thread cause ret->hb_task was not clear properly. Signed-off-by: Rock Li --- fs/ocfs2/cluster/heartbeat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index b13d344..9db448d 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c @@ -1258,6 +1258,8 @@ static int o2hb_thread(void *data) /* Unpin node */ o2nm_undepend_this_node(); =20 + reg->hr_task =3D NULL; + mlog(ML_HEARTBEAT|ML_KTHREAD, "o2hb thread exiting\n"); =20 return 0; --=20 1.8.3.1