Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5206589imm; Tue, 18 Sep 2018 06:06:16 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdax9zHBac1uoKSZZW2TekeGn0O9fdFV5DUnbnRgwcoYatMooLJ/Lge8HBo+QMWKQAzM/Q00 X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr29399213pli.207.1537275976626; Tue, 18 Sep 2018 06:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537275976; cv=none; d=google.com; s=arc-20160816; b=rcYN+XLr4OPE9mlIZRtn2D5MzIb7RpHHzAo6pKIsGEzaQu/EcmCvSp9R1s+SzI89w0 Fierojw0qzdUZ0htXDGr4/J4rqamMNURFAaeQ0Q+TiYrQRJIi5rtRPb3gfGF3Wv/LY4F rlVGQ4kvxVjWxU1lTgimMAofGrI4JWrAPLYT5f2rgtMQzgYstfdi49TCLmxc06lSxCCm cFBYiTJDZjrcJlen9ZNAyj0HKPkIcy00V3gv4ZZayVTSgwNovE9rTUkx3/7jG8bSUY9l 9av+ZIaLjVWAcRcHUUDMcmLKLRfsgIL35S/SPdjP5iKG5iYM/AEAX16xkh4m19U+vuhA 8A0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=Q1c1Wa2kdYXudbIuhJcShlVaoPYzs6v27rWsjdAfcv0=; b=TK3vZdazv4nlAnxI3DimrJYd8Q3MLSnO1+DRePod1x0aq0bi02R/azoHTcm7BFgQ++ BigtU2qlXbz9d8Nw7267xz21xoboAXsi5eUByFd5WPIk+5IfD11cfF3j9aiTXkPWI/jH R7tEkJNyUnS/R0S4aqvP1EV/yACfMtxIQNQ1bF57VUM1QleioNU1KBtG6bc7SWy2+Msj LP0EhHLAxhNsrBN3Nf2qFYN7oWLLWLF0LLlyUHiKFKLmCwacp7jrzNP4IzcF4Cy8EYwx tETVTfMP3W2fMbG4+LGnsr2VBXcf5mZ3ktMgyFksOaK+TRaDLnFWgR+E6wWt+dBdiZDc Gisw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/u642o0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si19137625pfu.143.2018.09.18.06.05.45; Tue, 18 Sep 2018 06:06:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/u642o0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729583AbeIRSiE (ORCPT + 99 others); Tue, 18 Sep 2018 14:38:04 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40907 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728631AbeIRSiD (ORCPT ); Tue, 18 Sep 2018 14:38:03 -0400 Received: by mail-pf1-f196.google.com with SMTP id s13-v6so1001331pfi.7 for ; Tue, 18 Sep 2018 06:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=Q1c1Wa2kdYXudbIuhJcShlVaoPYzs6v27rWsjdAfcv0=; b=a/u642o0HU8F3utqUo3LZuyWFgMxpLHFfe10zd5FW2rB8sIBgId7IoCj+nV7aYOBtg mBQJYO//PJ+hChKVjdGauR1Tp/2w7c+AT86CMiUhIPlfkJ3Fm9hcM1nYm6W/ld680aVu hoq6HwvBEFq4lxneu+GhLb+MeU3kaoqicOy/hhrKCiFnUje9pOdVuumEkFY/dWod4dCU UHRpwLQaLhKWZIJaukYDGp2YzZLzTM6mauIDSuWsU6Dj3+mQJ6cAn73y4zZsUSJQpcki GiS85jr/sntD/NTQVhWkaT3rI4XvI/aF84+tWHa4cLzZecilGnulkJZUM99A0E06dUhp gY8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Q1c1Wa2kdYXudbIuhJcShlVaoPYzs6v27rWsjdAfcv0=; b=n4Xfwur2uo0kV8CQQ218CeNPkU8BgG086Xq0hMzwtJKRMmpKzTIKdsIqrDFgTv8oo1 afsseGtmM6LnIV8sItDCB193FqyKR8XUHHfHYvuJmquSYC+M7YiqzDcF2I0M1sQhXRnH nNaN/W8qtII9D3IKtq4QY/zD8Pxoo9n6G51MJeZoUGs1OLUhXEN3zYFqgugq5RTwZv/G LLIf0bF+d2ikIBMWH8oWHWMw0BN1ufAZyiWNgiXm2LQIhbkKqs8waPXvyFC3Nb1Csmw5 hFmFabXsrMdjP5Cej96LZCtWsdmf8lkJYWV93OTWjdjCJEjFElP3LqZwcyzCSByV1SPb 8Asw== X-Gm-Message-State: APzg51CnkjeMkeysbxr2YNwfcLKJDORmLDFyb6SATU4C9Aaz74qy/zN2 0eyfnK7tO/sheCW0u+3Y/6o= X-Received: by 2002:a63:9246:: with SMTP id s6-v6mr25861340pgn.141.1537275933197; Tue, 18 Sep 2018 06:05:33 -0700 (PDT) Received: from localhost (27-32-189-129.static.tpgi.com.au. [27.32.189.129]) by smtp.gmail.com with ESMTPSA id w72-v6sm42984114pfa.26.2018.09.18.06.05.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Sep 2018 06:05:32 -0700 (PDT) From: Andrew Worsley To: Artem Bityutskiy , Richard Weinberger , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , linux-mtd@lists.infradead.org (open list:UNSORTED BLOCK IMAGES (UBI)), linux-kernel@vger.kernel.org (open list) Subject: Round up the average EC for recovered EB to defer their reuse Date: Tue, 18 Sep 2018 23:05:20 +1000 Message-Id: <20180918130521.22880-1-amworsley@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We suggest rounding up the EC(Erase Count) for recovered EB(Erase Blocks) so they are less likely than averaged to be re-used. The EBs which have lost their EC header page and need to be reset are likely to be more worn than average so it is better to use a larger than average number rather than less than average number. Andrew Worsley