From patchwork Thu Apr 11 01:46:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10895023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CE2217E1 for ; Thu, 11 Apr 2019 01:46:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 866E0289B6 for ; Thu, 11 Apr 2019 01:46:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B28228AA5; Thu, 11 Apr 2019 01:46:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BFC1289B6 for ; Thu, 11 Apr 2019 01:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726595AbfDKBqX (ORCPT ); Wed, 10 Apr 2019 21:46:23 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:58274 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfDKBqX (ORCPT ); Wed, 10 Apr 2019 21:46:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3B1haQn051548 for ; Thu, 11 Apr 2019 01:46:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=3wTo04vHAAwKt1rDYfu9jDCi2HFaMqDZuNvl6c7/S00=; b=5Dg/VUgXm4tED8KMRAGn/5cUxFApF2gjSFZLpPkSzUPsFbIa2PW0tNcYjPFqI5yzSnjE ihI8+dhw16qyy7q4MlFVpeVIKMbmVi2WcBAIVNhvyh215L0xn93nS/GBFdG2KdZyRQnb IDCSOyLiLIoLxrUut/PQeERiqNMz+VGOKUJl6PbPaI+QQw47ICi/q3bqPiobP5LupPGo tEx9CWV/mqOMp8UoWg5F1NA7yBVno8HcQhAzcjleyu4gFQ4ZGgQUk0OeN0ZwX4tTpz25 DCeJ/hyWq1lGQNGnl9iGnVLKgx4foJmVyMPiK+LK240NWsYGvpe5ZVHH+DR4ZoCyN++h qA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2rpmrqe2u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 11 Apr 2019 01:46:22 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3B1k0b3013983 for ; Thu, 11 Apr 2019 01:46:21 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2rpytchsm8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 11 Apr 2019 01:46:21 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3B1kLEY003868 for ; Thu, 11 Apr 2019 01:46:21 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Apr 2019 18:46:20 -0700 Subject: [PATCH v2 0/4] xfs: scrub/repair update health tracking From: "Darrick J. Wong" To: darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Wed, 10 Apr 2019 18:46:19 -0700 Message-ID: <155494717912.1090718.9199703658765720229.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9223 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904110011 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9223 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904110011 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series enhances the online scrub and repair code to report their findings to the health tracking subsystem. For now, only scrub gets to record corruption problems, though in principle a metadata read encountering corruption could also set a sick flag. Online repair will clear the appropriate sick flags when metadata passes its inspection after a repair attempt. On the userspace side of things, xfs_scrub will be adapted to give a clean bill of health to the kernel when it is warranted. The first three patches rework the scrub context management code to remove some clunkiness when we decide that we have to start the scrub over. Patch #4 actually teaches scrub to update the health subsystem. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=scrub-health-tracking