Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4069465pxb; Tue, 26 Jan 2021 11:32:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/jhksoDoBRmCX4Wmlw0NYs3xbTJLZoWRfHszhQYIvzaqQlk+gAyspRm6JSKaz9X7ksO8S X-Received: by 2002:a17:906:d8ac:: with SMTP id qc12mr4607887ejb.501.1611689560970; Tue, 26 Jan 2021 11:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611689560; cv=none; d=google.com; s=arc-20160816; b=pKnKbIr1BCvJuOe0OJzaK7FePNPvMREy2J1QBtxROicBwyYjKeTeH1oiJksVT9t7gR CEsaxxeAlu8VjccmBnqQjG96R93tKJIH3sizW5gMj/71hDWe8nvLvue/DZmXKGE1zvgb kC3Fl3dr2rIR1l1/9R7DYnNIA6lfaL1/6BqxidGlTcrehz+O2dPFcsIkJfS9Jel8Sf7W wwtiB0aKWUZHPQIWH8UK04QXr9NzteSyhSpPT942Wq/zjMWJRPz6tPpOPEZ3ywgzbp/q EkGZShtABBh/CZ/yu/wDw7BsRwCJR5wRoLG/qSWW6wnoS3ei2Cc5sMmhraOgiCTuPjmE 4N6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PoyhJGU3At+W9vbphSYncEZwLvDn6VgjdB7QZxjYKAQ=; b=q5SpNe37/UQSlEz0bMkmqs/8vbvldIrmrGtCVReRjmkVR8DEXTABSC1r8OMilujqfp 4IIU+r7bXzHcQ+1l7dgKuZ9ptVdLaZkVGFhTfy0vNHo9Nz0aAvSAlH4tkQnJBLu51Met JE60yZbWI8UEWoGlRefZFEd+Q/BHyIqZhbbzi1mQiMhyYVpP/0X0ELEuPGFLTzIJ1GOG iCMJWDlahB2OsJpVst3lR9d4KdlXaYLHEzhif6xqvX4yeKpeBw/RGasTF8ZF+BLJNich 7jBtwSRLlT0oTtAhETm8902RwMFT0yc5d0dgMBOwe2f/3r3kar9MDgJ8GLWL4YVM9eBc Mlcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si7482391ejb.214.2021.01.26.11.32.14; Tue, 26 Jan 2021 11:32:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391408AbhAZQFW (ORCPT + 99 others); Tue, 26 Jan 2021 11:05:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:51124 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404545AbhAZQCj (ORCPT ); Tue, 26 Jan 2021 11:02:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5F312AB92; Tue, 26 Jan 2021 16:01:56 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 243FF1F2A70; Tue, 26 Jan 2021 17:01:56 +0100 (CET) Date: Tue, 26 Jan 2021 17:01:56 +0100 From: Jan Kara To: Jens Axboe Cc: Jan Kara , Paolo Valente , Stephen Rothwell , Jia Cheng Hu , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: Fixes tag needs some work in the block tree Message-ID: <20210126160156.GF10966@quack2.suse.cz> References: <20210125204032.6b6a604b@canb.auug.org.au> <3F91181A-EDF2-4F01-9839-17B40D6EA07F@linaro.org> <20210126132946.GC10966@quack2.suse.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue 26-01-21 08:47:55, Jens Axboe wrote: > On 1/26/21 6:29 AM, Jan Kara wrote: > > On Mon 25-01-21 11:39:50, Jens Axboe wrote: > >> On 1/25/21 11:35 AM, Paolo Valente wrote: > >>> > >>> > >>>> Il giorno 25 gen 2021, alle ore 10:40, Stephen Rothwell ha scritto: > >>>> > >>>> Hi all, > >>>> > >>>> In commit > >>>> > >>>> d4fc3640ff36 ("block, bfq: set next_rq to waker_bfqq->next_rq in waker injection") > >>>> > >>>> Fixes tag > >>>> > >>>> Fixes: c5089591c3ba ("block, bfq: detect wakers and unconditionally inject their I/O") > >>>> > >>>> has these problem(s): > >>>> > >>>> - Target SHA1 does not exist > >>>> > >>>> Maybe you meant > >>>> > >>>> Fixes: 13a857a4c4e8 ("block, bfq: detect wakers and unconditionally inject their I/O") > >>>> > >>> > >>> Hi Jens, > >>> how to proceed in such a case (with patches already applied by you)? > >>> Shall I send you a v2 with only this change? > >> > >> We just have to ignore it... But in the future, always double check that > >> you are using the right shas, not some sha from an internal tree. > > > > FWIW I have a commit hook in my git tree that just refuses a commit with > > unknown Fixes tag SHA. Exactly to catch such mishaps in the patches I > > merge... > > That's not a bad idea, would help catch it upfront. Can you share the > hook? Sure, attached. Note that the hook just gets commit ID from the Fixes tag and formats it with 12 commit ID digits and appropriate commit subject. Honza -- Jan Kara SUSE Labs, CR --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=commit-msg #!/bin/sh # # Called by "git commit" with one argument, the name of the file # that has the commit message. The hook should exit with non-zero # status after issuing an appropriate message if it wants to stop the # commit. The hook is allowed to edit the commit message file. # Process all Fixes tags, check commit IDs and set appropriate commit titles. for COMMIT in $(sed -n -e 's/^Fixes: \([0-9a-z]*\).*/\1/p' "$1"); do GOOD=$(git show -s --abbrev-commit --abbrev=12 --pretty=format:"%h (\"%s\")%n" $COMMIT -- 2>/dev/null) if [ -z "$GOOD" ]; then echo "Unknown commit: $COMMIT" exit 1 fi echo "Setting fixes tag: $GOOD" sed -i -e "s/^Fixes: $COMMIT.*/Fixes: $GOOD/" "$1" done exit 0 --huq684BweRXVnRxX--