Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp819308imm; Fri, 3 Aug 2018 12:07:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcc1H9Rbypa+WlSZYTgoqjdyMqYuf09ADY84WtSp1dVBPx14bE8xfYpGqNcQUMibGJfM1n+ X-Received: by 2002:a17:902:18a:: with SMTP id b10-v6mr4833328plb.62.1533323248841; Fri, 03 Aug 2018 12:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533323248; cv=none; d=google.com; s=arc-20160816; b=VALcRXH/HsLAoXTTqqddH2z+j2EzTM2YXyg5AWsXh3qHrQAQeJKIIaIE8ub2jd7rMx 7OnnmnDSSgevM/FkT4oa7zxiENlO0zQM/Jr/QlPd0IpKuU67Oak+JYGLvnEWvsaiaVNU R2tXuP6tx0FUHTYc1YXL7Rro9ho+wbeoQIAlgQZmpG5iKI842jI7EDDi1kz8jxD/Q17r o1x8qpUYhiWXfXhQ0Wp+la8nEYAiVaSWQHh+wr44+m8MfeYNAiNwu/M4W/qV5AvRXgYu jSKQm1ZjTUC9R6je8K31cWnHyLEp3IG5UUUzvLqesRuNa+E/ORcTkQ2eHaOkCYy3J6GS AK1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=IDToxBLdEdiq3Ax0E/mIIeNm03feEMF+gE9NHIp+C8I=; b=P9umAK0TB1eFkpATH8W3rM9RwiHQqcI7cV+fjEJ1P5WqUuw4uvIbG43IlFVdGvHU2m jqYYk+MPtgZq3xsZJoSaExGMCUsnqVeZFOxr5jcuCoN9Et+4RveiGFuEtIK1sLGE71KU 9MuhwlYdDW6SO2gTVr1fJzxRsG9gpPowmqN/4rdCiBfcnB7aQ/04e6mTlkR2P1QQ+VMH I/IxkNltKUH+Hj7DPWcf/4hibpI6wTMv0rhfItPAiTDT8RNjvhYedGhHs13XdOkigj68 LIUznhuZZui08eIRtreJ+rnQxAUyqxLUz10B5Y92XlCAIspQnL0iBwAZfVTYdXUpQvMf BLyg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18-v6si5413336pgg.250.2018.08.03.12.07.11; Fri, 03 Aug 2018 12:07:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731925AbeHCVDz (ORCPT + 99 others); Fri, 3 Aug 2018 17:03:55 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727953AbeHCVDz (ORCPT ); Fri, 3 Aug 2018 17:03:55 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF88C4021CC2; Fri, 3 Aug 2018 19:06:20 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2F677100725C; Fri, 3 Aug 2018 19:06:18 +0000 (UTC) Date: Fri, 3 Aug 2018 15:06:17 -0400 From: Mike Snitzer To: Linus Torvalds Cc: Theodore Ts'o , Jens Axboe , Sagi Grimberg , Linux Kernel Mailing List , linux-block , dm-devel@redhat.com, Ilya Dryomov , wgh@torlan.ru, Zdenek Kabelac Subject: Re: LVM snapshot broke between 4.14 and 4.16 Message-ID: <20180803190617.GA4498@redhat.com> References: <1ec0a220-d5b0-1c27-e63b-c4d3f4ce9d77@torlan.ru> <20180803133102.GA3092@redhat.com> <20180803152034.GD32066@thunk.org> <20180803183932.GA3258@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 03 Aug 2018 19:06:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 03 Aug 2018 19:06:20 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 03 2018 at 2:57pm -0400, Linus Torvalds wrote: > On Fri, Aug 3, 2018 at 11:39 AM Mike Snitzer wrote: > > > > Please stop with the overreaction and making this something it isn't. > > It's not an overreaction when people get their scripts broken, and > some developers then argue "that's not a serious bug". > > Guys, this needs to be fixed. With all the stupid and fundamentyally > incorrect excuses, I am now no longer even willing to maintain any > other course of action. > > If you develop for the Linux kernel, you need to realize that > "breaking user space" is simply not acceptable. And if you cannot live > with that, then you should stop working on the kernel. Because I will > refuse to continue to pull from you as a developer. WTF!? > At worst, I'll just revert the original commit entirely. I was hoping > we'd be able to avoid that, partly because the commit looks fine, but > partly because it also doesn't revert cleanly. > > Or I'll just do something like this, since it seems like it's the lvm > people who have the hardest time with understanding the simple rules: I'll be your whipping boy all you like. But you're making Zdenek's response into mine and threathening to no longer pull from me. Over what? A block regression that an lvm2 developer papered over. > diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c > index b810ea77e6b1..fcfab812e025 100644 > --- a/drivers/md/dm-ioctl.c > +++ b/drivers/md/dm-ioctl.c > @@ -1049,7 +1049,12 @@ static int do_resume(struct dm_ioctl *param) > return PTR_ERR(old_map); > } > > - if (dm_table_get_mode(new_map) & FMODE_WRITE) > + /* > + * This used to do > + * dm_table_get_mode(new_map) & FMODE_WRITE > + * but the lvm tools got this wrong, and will > + * continue to write to "read-only" volumes. > + if (0) > set_disk_ro(dm_disk(md), 0); > else > set_disk_ro(dm_disk(md), 1); > > which seems to target the actual problem more directly. How does that pass for a fix to this issue? That'll unilaterally mark all dm device's readonly.