Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1759705imm; Sat, 4 Aug 2018 10:06:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdpYOPhznpIWT/wSwaBMTCbGuEWhvaaWjxMBPILPK3w/7lo73EEv9SVHTDBpqed6yzRhBJ5 X-Received: by 2002:a62:cf82:: with SMTP id b124-v6mr9862156pfg.142.1533402413302; Sat, 04 Aug 2018 10:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533402413; cv=none; d=google.com; s=arc-20160816; b=xUWhY36VKBYn/M5yxy+C9GtUptfh0KJsDp5MLINIPmsE4x5oeXVrzwLsnIfRgaLM3M 1PnlXe6FdcVPJ3KwSfPlMnqpqtURxEfhcDr08j2NBflXMyA8FZ2wSpyoPGmxr0iCdHXS UKsB7VaT95MQYXuLOTXpwQYLjw1z8vLMHWfV7S8+Oeel9ANI0+NKpNOvTZPkvQQnufdb fdeOK8qBmieSxI8bEmfbIKXGHR45RDkGKYrM+w1BDCKvlaNDp14aN0KxUAFpv6Q9PZFU cF0H6I1wBBtOBFiz7VHWxYzStzx+iBtgitALTESPet8NvIHT6Q8oIBaGK2jxEfMJvxGr gTLA== 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=kqEkWxb2wqOUCpWcv9SEaeFlHR8Dtwpujde8DX+Eykc=; b=b1C6PzwX/TbskvceV1UnJX4Y3y9hvmSNxMCL+Dpj9Ay9QBUeB8qhdvcrUbDSYfyS0I yUBAEsGo/T81ge3NypJBqiuyqwCjCx1BCLV5mcEQka56/qDW38JNlKLKedDxQ8wc/1cD RjBjGpA3QWKKzg/Y69jIVn47T6zz8oxgzIFvDQBhMVw1Q+HNX9EQau7Z8yyyJ4+bqLyL glUTQeQUFDZpVdLUxl9VgB4lYkTF6A4RDati/o5GZYpIgx6prGmvHhEAU5XsYz3DbYRE 1NibfsHNZAJqdjyhUyozyBmzgmr+2fSSMCB8crbrrTjpZmhSjiwdzpwjsMpz2gbjppzL 7DzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ip1EfzWZ; 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 65-v6si8310578pfe.49.2018.08.04.10.06.23; Sat, 04 Aug 2018 10:06: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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ip1EfzWZ; 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 S1729035AbeHDTGR (ORCPT + 99 others); Sat, 4 Aug 2018 15:06:17 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36788 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728205AbeHDTGR (ORCPT ); Sat, 4 Aug 2018 15:06:17 -0400 Received: by mail-io0-f194.google.com with SMTP id r15-v6so7637418ioa.3; Sat, 04 Aug 2018 10:04:59 -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=kqEkWxb2wqOUCpWcv9SEaeFlHR8Dtwpujde8DX+Eykc=; b=Ip1EfzWZa6WCT01CoEYotPvQoA/Ja32qXjRSFeYZmkoHTEJ4QBJOXvNGtsI9tJO17Q guP8xzePgP6azuXP3nhzU3c/gtmsVGlrynqMz+OTi/aUBav2+K3xySuwA5b7hw1N1Zb7 uUm9aWNFGAreGp4kG4D/Ie3dmMcb4bmo2pX4M= 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=kqEkWxb2wqOUCpWcv9SEaeFlHR8Dtwpujde8DX+Eykc=; b=YhlEr4fa8EvdBnB84rPl8DNlXug1dYi2R9zW4LrdZUucQgR9jACnq9afXE1ErgXvHC BbZYdg1eBkqwnAjopyL24Ds0Kzx1l0BQ7r91NlmA0+hjiL4pnmdbzpaoeWXVij8RnxDB DBZr0S0GDjqK7LAh6+aClxtiy/b6KlYVgQ79hkYJbVyGfz3EjCrkGUqD8/KBxk5NUsQq 32ZbScfwkvOjWKytyMDmYuewbFf6Y80Sj8cubqTp6KRj7Xp2S4CNJhiyfYUmhawHILDS 35p9IyPb0rJj9vBSo+1MhuUmqizHLHEYgJL99Sc5bS22Xrxuvh14HwhkWVsaHZui/TuJ Jtgg== X-Gm-Message-State: AOUpUlHlh4b1mRcgsFQF+Re6FBkygMk3jiBGCCbj5OWE7ICaOQUDyETX N3a/LfRCZ4dm+7zDKcZEnwzSAiIPqEQDbmoGwLU= X-Received: by 2002:a6b:fc0c:: with SMTP id r12-v6mr10502824ioh.203.1533402299023; Sat, 04 Aug 2018 10:04:59 -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: From: Linus Torvalds Date: Sat, 4 Aug 2018 10:04:47 -0700 Message-ID: Subject: Re: LVM snapshot broke between 4.14 and 4.16 To: wgh@torlan.ru Cc: Mike Snitzer , "Theodore Ts'o" , Jens Axboe , Sagi Grimberg , Linux Kernel Mailing List , linux-block , dm-devel@redhat.com, Ilya Dryomov , Zdenek Kabelac Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 4, 2018 at 3:03 AM WGH wrote: > > > > 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. Duh. It needs to be WARN_ONCE(1, ...); I obviously didn't test that patch, but I _did_ compile it. I wonder why I didn't get a compiler warning for it... [ Goes off and looks ] Oh, because the "bio_devname(bio, b)" argument ended up being interpreted as the format string, and since it was a dynamic string the compiler felt it was all fine. Just bad luck. Anyway, just out of curiosity, what was the traceback? I'm not entirely happy with that patch either (even after the obvious fix to add the "1" argument), but it does seem like the minimal temporary workaround for now. Linus