From patchwork Wed Sep 5 17:36:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinz Mauelshagen X-Patchwork-Id: 10589209 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 527E41669 for ; Wed, 5 Sep 2018 17:36:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AD46290B3 for ; Wed, 5 Sep 2018 17:36:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DDE429357; Wed, 5 Sep 2018 17:36:54 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DB22229353 for ; Wed, 5 Sep 2018 17:36:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 978AD308FB98; Wed, 5 Sep 2018 17:36:52 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1AB842010CAB; Wed, 5 Sep 2018 17:36:52 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4918D18005DF; Wed, 5 Sep 2018 17:36:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w85HamPx027730 for ; Wed, 5 Sep 2018 13:36:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8E920FA96C; Wed, 5 Sep 2018 17:36:48 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from o.ww.redhat.com (ovpn-204-65.brq.redhat.com [10.40.204.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 232E063A63; Wed, 5 Sep 2018 17:36:45 +0000 (UTC) From: Heinz Mauelshagen To: heinzm@redhat.com, dm-devel@redhat.com Date: Wed, 5 Sep 2018 19:36:40 +0200 Message-Id: X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH 0/5] dm raid: deadlock/corruptor fixes X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 05 Sep 2018 17:36:53 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP This series of raid patches critically fixes: - a race causing hangs occuring on tiny devices - a reshape deadlock / potential data corruption - a superblock update problem rebuilding individual component devices In addition, it contains (patches 4+5, less critical) removal of code duplication deciphering the synchonization action and avoids to create a bitmap when using a raid4/5/6 journal device. Fixes pass all lvm2 raid tests. Heinz Mauelshagen (5): dm-raid: fix reshape race on small devices dm-raid: fix stripe adding reshape deadlock dm-raid: correct explicit superblock update requests dm-raid: share decipher_sync_action dm-raid: disable bitmap when journaled Documentation/device-mapper/dm-raid.txt | 2 + drivers/md/dm-raid.c | 177 +++++++++--------------- 2 files changed, 71 insertions(+), 108 deletions(-)