From patchwork Wed Nov 22 03:51:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 16902 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1078060vqb; Tue, 21 Nov 2023 19:43:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE39xkWNE4qxv76wCV2dMDd+Lffzm7Desm3EllkAaaKzN6bPRmVSlJKcmpnCGQaNWh/Q3n+ X-Received: by 2002:a17:90b:1b52:b0:27d:22d7:9787 with SMTP id nv18-20020a17090b1b5200b0027d22d79787mr1218141pjb.36.1700624593234; Tue, 21 Nov 2023 19:43:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700624593; cv=pass; d=google.com; s=arc-20160816; b=BVO9A+eK5CfLJWuRx8Z4aqwXVCkuhBkCFM0DagkNzkzVLZPmFFOdzYg11vBmPCveUf qB+vzfIv4quSOzkhPhrlZPMEnHxO5djmNTZXdjf6CLhBHlt7WPczA/+CGVFi47U9HmkL N2nBgLjwKMTXfe4nkCRsB9IlMAvKG+OfFTfOETs20AEaNdgTNrAOi9lJ5rK7h9hcKbPf cQMC1tddFu9rkOKg0jdTgejKlsOFN5FXyry1znHrCKQIVuFwQJPoGKgXtR2pv7nDQmJG 4pU7/fx1lfVSoitXMfb3qE2CtSwAYG3/dK8qvNpH6lATu0E/PsYMDz+s7/K/bpf2ODeW ePPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=krSYVEZ1urv78MrZTPe7aKwLhVd7BQF9SttC/bBfuMc=; fh=Uwk14n9IAhtHIypdZ6uvL+DGXQxpagaq/e2hu3ao3xA=; b=kJWe9GrV8NzBvbskqSBpWiBbfqJHSOjxAdyjAfrsLmRxL5QJUGT6Yph2WS2IbJhlwm fhKuebZUyZYZ0g781HSawAWRjwRg4w8Kp7EgrzylxZFzmhiXL5RmLsMPLdGY5266tm5O V2OTHIm064H6+78DvCKxLG4nZSXpHhB8QQGCBakOX4U+se/ZyYhGvDa7QYhmBlJss8Y5 KuUF17eFq/R6IQDRlBmG9lluxOwWzwlHf4AFQIbFVVYI45NKD3TTih3daNr2d78JFuNB 9vKbSOhotYkIbmsPHbcWyxZ1qXij1ERaKE1YO8A+sxidWRbGag3LfdNHlRVVM5YgGl8B WHXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=TCxF9zui; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m5-20020a17090a858500b0027d088ae385si557180pjn.96.2023.11.21.19.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 19:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=TCxF9zui; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C05B680F66B8; Tue, 21 Nov 2023 19:43:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343574AbjKVDnC (ORCPT + 99 others); Tue, 21 Nov 2023 22:43:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjKVDnB (ORCPT ); Tue, 21 Nov 2023 22:43:01 -0500 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2113.outbound.protection.outlook.com [40.107.117.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96DC518E for ; Tue, 21 Nov 2023 19:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aqjAyQ3Z8OsDGCVE32Qx3dQLmGoO6Sds6vU1uF+UTij6mwNrvfr6A/+P6/QC+MUARCvT/ztXeeMoInw8p0BK2HvdsTLoXTTzSbPxkf7VEC7fJ0NYEnBs1Sn1FGZzglP0ulbmNuUAYN7gDjzKR9dvkP36cPcW1U2glJwzx6Y60MUIg6otUTlKN0P60DT0MElfTotf5EnEVC1ODcpStM9o4JcEuflXV1S5Q98BWG7qI7MDnMv9gdVXe6u/XCtwIts57ovdt0XMb2BD6uV7RAOBrnf24vZUlDrUvPuHjzMQs3mL+Ere7JOLqgEdaH4DH+eAU8gSuCC3vDcLo+gmTOa6Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=krSYVEZ1urv78MrZTPe7aKwLhVd7BQF9SttC/bBfuMc=; b=W7nFNRBsDvsUHyBRFGbbcJcs4y9/sQ5jcLu38KwS+Gd7vqCJl5ndMlMf36udIyulbIb7INqraehDwmtitE80VQR0/pnWZX6gdGEtrKWe1dquImsaYvkHF3SThfrUm1z1TcUe3MDws95uf/63PJWTLzc0c2iCoqDizUfbZnNuZ7aoC1dljQ42P6TX8donMZqaycV5xMpvDy6MBYR4ITUo3aC/1ZmxuP6g7hFfvFyWf21PFu4fQwh1anGIyXGLfRPBF4Ru3U2NAntutcawpjSOJT5l9QRsuLewCVjaqBPWWHVyLxIshuT4Lk1hSYBGSV9bEc7JCPQ79b7zhL1xhcZdRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=krSYVEZ1urv78MrZTPe7aKwLhVd7BQF9SttC/bBfuMc=; b=TCxF9zuirJaF49dVN0w8tSt6ZdGqKdVuE/nmmHWl/yaQs9FjxlZSlhaL0WHMK7+/ARMucDJZ+HyQ+lb9JxROlzTV2Nb3zj32RzEZVSCstzF8JP+/LUW9U3jQgJfo9RseSvJTTJn/0mNwct28m9vU92hhKL5T8HusN05fF522rswdRCIvb/mv2yZsmoarGTB/5L6vAKtbDDVIMwe+1/rxd7GjuTcwQfrqwPyYIDk8ixHiIpaK5+5Q9BsoFNh6gGJj/CDZxGB5wLBRejwZBwUAyeJFbkasLZl9QfXicfgZMZLOCgvZNyH4LK2NrNkQGry4l32ATMYPlvsKGW/VHzL/gg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PS2PR06MB3509.apcprd06.prod.outlook.com (2603:1096:300:67::17) by KL1PR0601MB3891.apcprd06.prod.outlook.com (2603:1096:820:2a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Wed, 22 Nov 2023 03:42:49 +0000 Received: from PS2PR06MB3509.apcprd06.prod.outlook.com ([fe80::863b:f0a1:3066:24d]) by PS2PR06MB3509.apcprd06.prod.outlook.com ([fe80::863b:f0a1:3066:24d%7]) with mapi id 15.20.7025.017; Wed, 22 Nov 2023 03:42:49 +0000 From: Wu Bo To: Alasdair Kergon , Mike Snitzer , Mikulas Patocka Cc: dm-devel@lists.linux.dev, linux-kernel@vger.kernel.org, Wu Bo , Eric Biggers , Wu Bo Subject: [PATCH v2 0/2] dm verity: fix FEC stuck during lower dm suspend Date: Tue, 21 Nov 2023 20:51:48 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2P153CA0002.APCP153.PROD.OUTLOOK.COM (2603:1096::12) To PS2PR06MB3509.apcprd06.prod.outlook.com (2603:1096:300:67::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PS2PR06MB3509:EE_|KL1PR0601MB3891:EE_ X-MS-Office365-Filtering-Correlation-Id: 2461ea5d-d017-43a0-5f38-08dbeb0d1862 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oRUzUadnYDD4Z9o7LXUfaikCJV4thvwTbWfgKZBbwUWueaE1aGeOz/SDW4QjvTNhP4oGIsJFPDikCcfBEz78gLm1j8XD0BpLd8cb3WK690HR5HzvDgfc+Qi93kaFyGPlueFIUG33dGREZUjtUrH1vMXaug5oaw3gAmMuSc+vRyj0Bs/NFk6zsedi6f+2ksPyjAGD6sIV116u/6pPdGcjex9Uz16UkvfqtDED82UVBV+XAUkGYm+gXXQ3lTGW8Jmw0EHuxaweFkJmxEDOr/C94Fb57ONGFQbu9wE3iPACMTcqK+tqJHUMcnHO7a9KHl5RpRNapJtFRc7c3HpB7t5Q5QAzzn/2NtlV1uMpJnNz5NkZrJa4IwabSe3Edu3L97TWGur4KH18GIFDbufGtBKtdArWBUtQQbrRczcYsWqNmrYawl0e41+pv6E6Tciyhqk33eV8z3Tjbugxoha0Xr5Hdsjbg1Iz7CJ1jT92wbg2yUVNRXpCbsnLDudDuxVjgYffA2osyg9shPZZKGWMOgjpfaeZjoerhRSAiUFXj6HtxSw7WKKjxkfq2fkN6gLiBUO6dUxUjn0jfcZBlHHtALSMgXH9vO3ZJHaWwa7RWg38dVZcJ8FZaZi40B89iVNqw2Yw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PS2PR06MB3509.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(396003)(346002)(376002)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(41300700001)(38100700002)(5660300002)(4744005)(2906002)(86362001)(38350700005)(52116002)(6506007)(6512007)(36756003)(478600001)(6486002)(83380400001)(2616005)(26005)(107886003)(54906003)(316002)(66556008)(110136005)(66946007)(4326008)(66476007)(8676002)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KhQ3D+v8LsJgFru8Ju+2D6kR0bA+R5Tknu8j/al7z8tK8vRUaYA6ioyrf7XhsRatW1oeninPDkzuIsQCbRA1W1VcGc5u9mAor1Wra3epx0AmSOblUI2+XBD66gIXrByaQG/fOZw7zjfdwoj3NMB3K7IQJlY83Z7s855LOAmnlmZ0pK/k3HstY+cAIgKFa/hfG+x/1QVomceVZA/up5g9acTulu6LgBL/x27zl0xeZuoeQebXLw5YQxWJ2rs0iIzaHuvFVrWXl7UUCcys8H6MRD8qdWk1CIU25lIHvhCPFo08gkvuNTLD7cpS4FpVkWNGk1v71K17A15Qsr+Qb8p3JwmSHCrMVYMvjRhrX2cuGyn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p+CkhuBa4pzrAQH1A2QP4vxCg0TdC/Et3cY9XYRquiLeLfmSl8uYMZ8GpGP+hWplL1iY1gXa5q6PUwvJu06/ZL5z3QInfvFxc50enzFgikcmCw90VWSGDVLOhQvYvjEvpzAw3O3oOEthjIlmZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2461ea5d-d017-43a0-5f38-08dbeb0d1862 X-MS-Exchange-CrossTenant-AuthSource: PS2PR06MB3509.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 03:42:48.3106 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tqcFZolT+1RC7a5oA37+wO3KvvwLBe5LG+HqQ5sBuepiidYz75/LA0+M1o4F6+yZDuoTgR6feQczOUHk9LMzVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3891 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 19:43:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783234133519662510 X-GMAIL-MSGID: 1783234133519662510 Hi, We found an issue under Android OTA scenario that many readahead BIOs have to do FEC and caused system stuck. These 2 patches try to fix this issue. Thanks Changes from v1: 1. Modify patch1 as Eric suggested 2. Add "Fixes" and "Cc stable" tags Wu Bo (2): dm verity: init fec io before cleaning it dm verity: don't verity if readahead failed drivers/md/dm-verity-target.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)