From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A083FA372C for ; Fri, 8 Nov 2019 12:07:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 040752085B for ; Fri, 8 Nov 2019 12:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573214877; bh=jG2aSz2Pb4y1MKAx7DVTE3iYnfIdbnCZP2NYAc2w5SQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=mwRdUII/cohsY6N04VfHkLwPwAtdKelGWgIXIsew/4lCSxVIIMAMH2vSPxvjFh8gs PBBNZLSX53M3qLx1qJvmtvUPJTzA7zpS72kon5zSzfVlbRxDG6rNG3XBqa/G9KKErA ky4h0FFjMZeVcsD49JA8od0MZIGOP65D+j5916Qs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391364AbfKHMHz (ORCPT ); Fri, 8 Nov 2019 07:07:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:53668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732242AbfKHLkn (ORCPT ); Fri, 8 Nov 2019 06:40:43 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C0F521D7F; Fri, 8 Nov 2019 11:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573213243; bh=jG2aSz2Pb4y1MKAx7DVTE3iYnfIdbnCZP2NYAc2w5SQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gcosBiwtD2tA6XPjC0baVgWhns7RtEYnLfdQsNTMDDefcJPF/UdMFCtFOYM2YYK/W NiGRP+v7zU5tbUlkIYNn8G2JBXaZK5teQOme+2wB/6WsU7wc/3IIi3sdYApjH7MTGD 6pq5ue41XcufQgObtaiancvHO6GZ+HCnHFZkI2Tg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jaegeuk Kim , Sasha Levin , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH AUTOSEL 4.19 112/205] f2fs: submit bio after shutdown Date: Fri, 8 Nov 2019 06:36:19 -0500 Message-Id: <20191108113752.12502-112-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191108113752.12502-1-sashal@kernel.org> References: <20191108113752.12502-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jaegeuk Kim [ Upstream commit 5ce805869cbed93267ed26552ff76e30f05c91f7 ] Sometimes, some merged IOs could get a chance to be submitted, resulting in system hang in shutdown test. This issues IOs all the time after shutdown. Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c61beaedf0789..b4a634da1372b 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -543,6 +543,8 @@ skip: if (fio->in_list) goto next; out: + if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN)) + __submit_merged_bio(io); up_write(&io->io_rwsem); } -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F212FA372C for ; Fri, 8 Nov 2019 11:40:53 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D86B4222C6; Fri, 8 Nov 2019 11:40:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="WPnJJ1Fd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="Mc5IrEFF"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="gcosBiwt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D86B4222C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1iT2dI-00060C-Ft; Fri, 08 Nov 2019 11:40:52 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iT2dG-0005zy-II for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 11:40:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/ZwBZ/VnhHHUBGAw+4mo5/wmsQVjfjHYtcCWSJaTFSw=; b=WPnJJ1FdZkksWzUbem94kAvVPk eMUg0dxHPwFxUbliLG9HGpRnrOPrbhajJPKOPI41OwoDqpObuRpnSBt/EK1MLwm8/D9IexXXns+M0 7UpmC8IduoFB3tLQ+Dcq6JBSWWzuOtp2clLKgxguDCRQ/8a4j9RFkzPVWuAGpM23CuKE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/ZwBZ/VnhHHUBGAw+4mo5/wmsQVjfjHYtcCWSJaTFSw=; b=Mc5IrEFFZOVUYNXVrGrl+CBrDd SQ0Ij75fh9Q2GhgwpSkmFOgYrnS74mC32yGOaAoSbQoLgrQThKu43N3hPAL+P6XZGt+Hy7RCoOs6O WVmNL+VD/dcz+0U9X62q+9VjwpjQUDPu6LcY8a4EB3jLJc4FZIRYPvfn/QZPQ1uwJi7o=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1iT2dF-004v07-GX for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 11:40:50 +0000 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C0F521D7F; Fri, 8 Nov 2019 11:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573213243; bh=jG2aSz2Pb4y1MKAx7DVTE3iYnfIdbnCZP2NYAc2w5SQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gcosBiwtD2tA6XPjC0baVgWhns7RtEYnLfdQsNTMDDefcJPF/UdMFCtFOYM2YYK/W NiGRP+v7zU5tbUlkIYNn8G2JBXaZK5teQOme+2wB/6WsU7wc/3IIi3sdYApjH7MTGD 6pq5ue41XcufQgObtaiancvHO6GZ+HCnHFZkI2Tg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Fri, 8 Nov 2019 06:36:19 -0500 Message-Id: <20191108113752.12502-112-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191108113752.12502-1-sashal@kernel.org> References: <20191108113752.12502-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-Headers-End: 1iT2dF-004v07-GX Subject: [f2fs-dev] [PATCH AUTOSEL 4.19 112/205] f2fs: submit bio after shutdown X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Jaegeuk Kim , linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: Jaegeuk Kim [ Upstream commit 5ce805869cbed93267ed26552ff76e30f05c91f7 ] Sometimes, some merged IOs could get a chance to be submitted, resulting in system hang in shutdown test. This issues IOs all the time after shutdown. Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c61beaedf0789..b4a634da1372b 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -543,6 +543,8 @@ skip: if (fio->in_list) goto next; out: + if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN)) + __submit_merged_bio(io); up_write(&io->io_rwsem); } -- 2.20.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel