Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1813434imm; Sat, 4 Aug 2018 11:21:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/voduDPml57WEV6sCtAXv6eOvZL9aSXB9SrjANFGnanRvqWdDNQP6HGgvfI82e1/EPfV5 X-Received: by 2002:a62:c00c:: with SMTP id x12-v6mr10027949pff.216.1533406867264; Sat, 04 Aug 2018 11:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533406867; cv=none; d=google.com; s=arc-20160816; b=rGHpRN5//Wvz2dd8TqkXBcn8NDLXoqZp7G2ThUDRfl226lN5BmMg/Qujr66pss748P dfHggrgWi1gVbQb34LvjspYplyCIw/d9UkLPdHxVHQorxSrg/5Db/o3b2blogqo3S9YC vFU0uA+SEsgcfJWjYb5uBz0eTiC49caYSwr/aiwfazvcAa9UsAy1aWzBo1iRKnyIi6Sv yKEA8ZFbg+598sYa/SwRBUyI2A4+hocy7a2ES2nsKvI8SeCaz63FcG90+nVNXKFKuW6Q Yp6hRH6z5tgfdGne4PFFU9TdPfTCxVGj+TBa8Z7CkEe8LiA+N/wn+T86asrRhg91HqA7 F9gw== 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=ftyVtK9XOxmWNz0J6Rau5pjWwKu0hEX0CeLLubib+iQ=; b=cXw91aMJEr/yTxz9MnS5qfM6UDtZydNtLly+mJxbseVCrABoBsJllGoVmXYfb7v7f1 pjjArftTLqsi5c69yViLPhzZIXBqj3V9Mr9/6Ko00G/ZvqvmQm70oGKitFyzieImxz06 PsyJYDHlpIU6vrwxJLKBH7HFXJeaHDD4sdaC8k3ezdDOiIicSsXF29wD3fXCB85D7b7b Cfzwop5uNVtpa36vf2+FlKf3VrKHourVSoKiv/vHAXLZPgJQaZxwMb11riLt186GUBwg OB5dSalhCrdfluiHO0QVcoUSYD6BUD/e1cN0ufkaxt/zPGuoQ/0mcuggZ4A7TIX44MXK 8+GQ== 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 y71-v6si8085741pgd.223.2018.08.04.11.20.52; Sat, 04 Aug 2018 11:21:07 -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 S1729669AbeHDUVW (ORCPT + 99 others); Sat, 4 Aug 2018 16:21:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728054AbeHDUVW (ORCPT ); Sat, 4 Aug 2018 16:21:22 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 67301401B1EA; Sat, 4 Aug 2018 18:19:51 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 445092026D66; Sat, 4 Aug 2018 18:19:51 +0000 (UTC) Date: Sat, 4 Aug 2018 14:19:51 -0400 From: Mike Snitzer To: Linus Torvalds Cc: wgh@torlan.ru, Theodore Ts'o , Jens Axboe , Sagi Grimberg , Linux Kernel Mailing List , linux-block , dm-devel@redhat.com, Ilya Dryomov , Zdenek Kabelac Subject: Re: LVM snapshot broke between 4.14 and 4.16 Message-ID: <20180804181950.GA10514@redhat.com> References: <1ec0a220-d5b0-1c27-e63b-c4d3f4ce9d77@torlan.ru> <20180803133102.GA3092@redhat.com> <20180803152034.GD32066@thunk.org> <20180803183932.GA3258@redhat.com> <20180803190617.GA4498@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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sat, 04 Aug 2018 18:19:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sat, 04 Aug 2018 18:19:51 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Sat, Aug 04 2018 at 1:04pm -0400, Linus Torvalds wrote: > 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. I agree. Please feel free to add my: Acked-by: Mike Snitzer