Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1417748imm; Sat, 4 Aug 2018 03:04:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdv/auFs0B9A0Ihg+t92tW1Ks0Px0x6w105dvR69BzpfeXO6fNh1aFwJb4CVq066OINWvB/ X-Received: by 2002:a17:902:7d94:: with SMTP id a20-v6mr6708852plm.19.1533377093456; Sat, 04 Aug 2018 03:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533377093; cv=none; d=google.com; s=arc-20160816; b=IHd2cLDnMpMblwyi+JR+MayXfhCWjl+kGUiKgnvt/isCUrT+9vga2wAfcioqE3WnC1 9fsde9YmfPMHPq1sclDYPtOwH0DslvTS4//VXL5GRB1AbPOULun+ote34iMDQcgD1Bcs P7Z14q7m7ajfJWLQPfLZckUk6P2liL3lRyg4cDf5JfmKglAaS37RVaIRbLY1yQfp9Kvt VQ/s3ljqsItC2vldWYhWrBWdKCJ1CAAERORhxi4zMIVS5oDA/mlp/6pMxwHWbYyRdrg9 77qOUhEpBzIatxnkzRCn3eotuZ98KDI802USS334urhIbBJCu9kbh2pUwhmyJ9zv2oUQ dxrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject :arc-authentication-results; bh=WrF4Mz6h3VdfMqx1e5dQWH94WSKGkqXbqfFTEJ86XMQ=; b=PE2iHOVkfdB3E2MNSZ0OIT1x6h1r2fBLOPL3gstQw23ZKAdLjI9IwnoNqQ37F1Jygv bpS+6Vwof2kd53DfJ0zDB/Wb1tMlkj2m6I9DeenP75dENYMpcqjjzLAWwoq/s9Zbe1dP Lqt0JRq0QK5tB0hJLFxFGUHbmalR7WFhOwAtUDTpRNSFo4TQxVNLbU2fPtk4x/Jl6lpw 36k1G0nVy9e6w8OewUbxihmxOxe7/uithvrpbTb22OWabvpb7UNfsEv6iQssTYVS8x82 FvxxObP9fMIF8LqQZtwdQpMR83pXXBi9Bv5yMeaiEQMArwQJNRceeQIGUsj6b59eM6/G Ly6g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si7468432pgj.391.2018.08.04.03.04.37; Sat, 04 Aug 2018 03:04:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbeHDMD6 (ORCPT + 99 others); Sat, 4 Aug 2018 08:03:58 -0400 Received: from forward100j.mail.yandex.net ([5.45.198.240]:41415 "EHLO forward100j.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbeHDMD5 (ORCPT ); Sat, 4 Aug 2018 08:03:57 -0400 Received: from mxback1j.mail.yandex.net (mxback1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10a]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 3F7415D86903; Sat, 4 Aug 2018 13:03:43 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback1j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZgFeUbaMP1-3gWqNvtl; Sat, 04 Aug 2018 13:03:43 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id E88htQpck2-3fMCj9VM; Sat, 04 Aug 2018 13:03:42 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Subject: Re: LVM snapshot broke between 4.14 and 4.16 To: Linus Torvalds , Mike Snitzer Cc: Theodore Ts'o , Jens Axboe , Sagi Grimberg , Linux Kernel Mailing List , linux-block , dm-devel@redhat.com, Ilya Dryomov , Zdenek Kabelac References: <1ec0a220-d5b0-1c27-e63b-c4d3f4ce9d77@torlan.ru> <20180803133102.GA3092@redhat.com> <20180803152034.GD32066@thunk.org> <20180803183932.GA3258@redhat.com> <20180803190617.GA4498@redhat.com> From: WGH Openpgp: preference=signencrypt Message-ID: Date: Sat, 4 Aug 2018 13:01:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2018 10:22 PM, Linus Torvalds wrote: > 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.. The patch works for me. However, there's no text messsage in the kernel log, just a traceback. I think that's because WARN_ONCE is supposed to take condition as a first argument.