Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp832995imm; Fri, 3 Aug 2018 12:23:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecqSBYz/De186ZiFYFCd+01ePEbIp0tYvbnzw7MuNiFfzsGw3GUdncW8jElk42kR19N/Fv X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr4743339plo.88.1533324205693; Fri, 03 Aug 2018 12:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533324205; cv=none; d=google.com; s=arc-20160816; b=f+qP0IQGSOebdGMwceYQOC84ANN/eW6lrc6imRrPCdy7+9y1yR/suJo2jsevW3ZMDL 1Lkp8hhQU0SAv76gGlvgOix6GJ5I98hRqp7n/t7QkN0zGLHaWLVdpdxZvchrRObbbgBG wD37MwSbaSPOzQ2MWegz3O43xwfRq44gFrFl9CQR5gncgBIBc4E9Z+5kFAOc/Y0w+PeB UJnKP1TwgjrFppEkWgOm41nkCZMlMnQCLnx2+sgLQdv+11BQLCsZ/C/PhJC9NmIt04J1 4SCxV2oDrKd5SpX4dTX+8s20HR6Li/NqFF+J67qE0KsNRXcuzSOWWrD0i1iVnCBXVZBN NQ2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=vfiHaVFlxYbn9LOEqSawD9VRCaWcCmA/H4BId/qNLzg=; b=RRjkLfRwBHF6C/4L+09WVg6xVJwN21/+vZIV0ZKq4PpygSQpaqesUUZk4u1EEIIHpa gy4ypiU74eQ8iNhMJP7zbkS+WXz87s1WxUIG51v0CpkoG4Enfq5SHwxxfsyEpTlt6zaO bu5s8YtJvARURUdQjO+dHRdu/HXp3povNceCXSCOCS2VWGaWKZ/me4Z8MvM7UzCTwfNX e3+hhIfwA9wXwcbt3GDu8132ulRoMs0GOcgiozLkpdRtxeqZm4ReJ48CVn1PddjTIPQS DIigsH77d7YzuiFCTTPANlXCNaMlqr/KfWdRQaHEkFluAVeQ9qBVgq9SWoWK35U3N0iE zFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="HK8O/k+C"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7-v6si5358232pgf.231.2018.08.03.12.23.10; Fri, 03 Aug 2018 12:23:25 -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=@linux-foundation.org header.s=google header.b="HK8O/k+C"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729834AbeHCVT7 (ORCPT + 99 others); Fri, 3 Aug 2018 17:19:59 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:45073 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbeHCVT6 (ORCPT ); Fri, 3 Aug 2018 17:19:58 -0400 Received: by mail-io0-f169.google.com with SMTP id k16-v6so5859670iom.12; Fri, 03 Aug 2018 12:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vfiHaVFlxYbn9LOEqSawD9VRCaWcCmA/H4BId/qNLzg=; b=HK8O/k+Cj6wg6YZSKUdQ5D1O4XOD2Pwxrx3+2h1UlnK4GZqxIoX+JxcIfTwo9qU7qT OCGfG3RGot7ARzKiOg9mncOopKajjByV/fvMOJefBNF3gYFG/nCoN9xKT0gP4YabfEdw fc5XnuAXeLLNaiYyTgZhk1rl60CKqDGhrQ3LA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfiHaVFlxYbn9LOEqSawD9VRCaWcCmA/H4BId/qNLzg=; b=jO27bp7nrU65x/35rfd2DsJVoKFYTww4LcllAi35oN+2LA7caJIxT7XM3orA3A7if3 0m8mGxQoBVqtGxC0l+Q/Ca5EZPdtDRPpqhAhFLzRqOgEClyN0Du+luUSFteKKtaoIJT4 VUiFLaDOiZt1XSmGNWo4OzC9CfEX+oX5W05bqlt7nm2P85DAoXSlSuPm5zGcZv+Jtqp2 /MIZmKc8xmPhF5nlYS+Fr3CxY9jA2n9ey0QM0zzL1/qqpDYpn+z56wbEf5Yoh7fqW/fZ BmLk1K0LpJev1addtj7jfPpNq+wBvX315YVDafBL9bzfyC9Pfzw5PR/iEVdTgUNnIO1X Zw0A== X-Gm-Message-State: AOUpUlFib010XEeC+URvIbZwo75NRU+9CPN/Ik7sRRb5YxH4FgqekTsI GodE4Y7AMn7/xOVVBcpkKclk0KtJX/+vSWn0EsQ= X-Received: by 2002:a6b:7a05:: with SMTP id h5-v6mr7541015iom.238.1533324141184; Fri, 03 Aug 2018 12:22:21 -0700 (PDT) MIME-Version: 1.0 References: <1ec0a220-d5b0-1c27-e63b-c4d3f4ce9d77@torlan.ru> <20180803133102.GA3092@redhat.com> <20180803152034.GD32066@thunk.org> <20180803183932.GA3258@redhat.com> <20180803190617.GA4498@redhat.com> In-Reply-To: <20180803190617.GA4498@redhat.com> From: Linus Torvalds Date: Fri, 3 Aug 2018 12:22:09 -0700 Message-ID: Subject: Re: LVM snapshot broke between 4.14 and 4.16 To: Mike Snitzer 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 Content-Type: multipart/mixed; boundary="000000000000c3424e05728cd81d" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000c3424e05728cd81d Content-Type: text/plain; charset="UTF-8" On Fri, Aug 3, 2018 at 12:06 PM Mike Snitzer wrote: > > How does that pass for a fix to this issue? > > That'll unilaterally mark all dm device's readonly. Well, if it wasn't honored before anyway, then... But yes, a much more targeted patch would be preferred. And in fact, maybe the right thing to do is to not revert the original commit entirely, but instead just weaken it a lot. Turn the "you did a write request on a RO disk" into a WARN_ON_ONCE() instead of a hard error. Something like the attached patch. WGH, do you build your own kernels? Does this attached (untested) patch make things work for you? It should give a big warning, but let the old behavior through.. Linus --000000000000c3424e05728cd81d Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jkedkspc0 IGJsb2NrL2Jsay1jb3JlLmMgfCA1ICsrKy0tCiAxIGZpbGUgY2hhbmdlZCwgMyBpbnNlcnRpb25z KCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2Jsb2NrL2Jsay1jb3JlLmMgYi9ibG9j ay9ibGstY29yZS5jCmluZGV4IGY4NGE5YjdiNmY1YS4uOTVjYTQ1YmM0ZmM5IDEwMDY0NAotLS0g YS9ibG9jay9ibGstY29yZS5jCisrKyBiL2Jsb2NrL2Jsay1jb3JlLmMKQEAgLTIxNTUsMTEgKzIx NTUsMTIgQEAgc3RhdGljIGlubGluZSBib29sIGJpb19jaGVja19ybyhzdHJ1Y3QgYmlvICpiaW8s IHN0cnVjdCBoZF9zdHJ1Y3QgKnBhcnQpCiAJaWYgKHBhcnQtPnBvbGljeSAmJiBvcF9pc193cml0 ZShiaW9fb3AoYmlvKSkpIHsKIAkJY2hhciBiW0JERVZOQU1FX1NJWkVdOwogCi0JCXByaW50ayhL RVJOX0VSUgorCQlXQVJOX09OQ0UoCiAJCSAgICAgICAiZ2VuZXJpY19tYWtlX3JlcXVlc3Q6IFRy eWluZyB0byB3cml0ZSAiCiAJCQkidG8gcmVhZC1vbmx5IGJsb2NrLWRldmljZSAlcyAocGFydG5v ICVkKVxuIiwKIAkJCWJpb19kZXZuYW1lKGJpbywgYiksIHBhcnQtPnBhcnRubyk7Ci0JCXJldHVy biB0cnVlOworCQkvKiBPbGRlciBsdm0tdG9vbHMgYWN0dWFsbHkgdHJpZ2dlciB0aGlzICovCisJ CXJldHVybiBmYWxzZTsKIAl9CiAKIAlyZXR1cm4gZmFsc2U7Cg== --000000000000c3424e05728cd81d--