Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp101697pxf; Tue, 23 Mar 2021 23:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmjeOTG9ExkN2uloL7ON2t7kc3juB99R3tVNi6DP/f3vSxiM18awfifZhLzv44M9X4UyWO X-Received: by 2002:a05:6402:27d3:: with SMTP id c19mr1740142ede.129.1616568030469; Tue, 23 Mar 2021 23:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616568030; cv=none; d=google.com; s=arc-20160816; b=VZCN8RbmxdiBh3ez7X64elfmdKOuqXGHSX42U6lt3ENzOL7GmA0CG11GiCsROrAGwE pn7k+A+sllBDy7g8gUGfDqdW2CWFzyOySUwuEKDW8B50AJaaWFa+Ew3au9sSu2lfWYyI VD8bhtMcgi5iuUkg1El2/ZXsedVrnGHhI/qRzke14MMD1/Nl6rS17SZEJT9DLVotmDu4 whpyRNIo7tu7hb2GjsiIl7HpWcI2/k8TYugT17ruUvRdFJj8/TLT2KzWCX77XIumSVUh S2klbhLXs6Y6gt38So6YsKmjLVcoUt+hLILj5P6fQCZ1c7WYGjgsyIJIoyyZ4UlHX0cb K95g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=G7iciegtRvKppYPYJPauE2IorhaqFayxqE/yzKwzn88=; b=nvvSv7R/MnQ/Bc3NID2erSzq+QnkaOx3gslYUFfsH7mxsw0VjQcVUtSRT4l43rLBWW HVkEo89oZYvJJKTt1GQ9x3/pnt/L9QqqVpltDIQpmmOb01U9kXkj3yFLK9Nd0Ypuia72 Uxdo36IN67IXWr5DGm+5xJ1SXJWcbhep+dTOnUz1cE2WG2VaPwgcKf8XWBr7e55y7YU/ q46RK2tXJEG1iNSYAWgothCXkc+7lSU/zr1Uv9Iq1Y1AtCf6oiU8v5dqzEinO5JwdDxX NLUu7TL2A1BvDtKi+462QfP2QXYFNsm7wKmHMmEwOxsDy09TYPFVKGxJ1jQ3OKcRQ38A QjsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=kDTg5d9R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si1076214eja.602.2021.03.23.23.40.08; Tue, 23 Mar 2021 23:40:30 -0700 (PDT) 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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=kDTg5d9R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbhCWRon (ORCPT + 99 others); Tue, 23 Mar 2021 13:44:43 -0400 Received: from linux.microsoft.com ([13.77.154.182]:33980 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbhCWRoL (ORCPT ); Tue, 23 Mar 2021 13:44:11 -0400 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by linux.microsoft.com (Postfix) with ESMTPSA id 25EA020B5687; Tue, 23 Mar 2021 10:44:11 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 25EA020B5687 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1616521451; bh=G7iciegtRvKppYPYJPauE2IorhaqFayxqE/yzKwzn88=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kDTg5d9RTPxy1Mfp4rWpK1Q4IdRB+dl+unYwdT0itz0xewY5lRAay+WgiuRWVF0CQ Z4zrbZIkWTITwZ93Rus+zk7Zc0hrhdjyhQU1X06d2fJl64Q08ZWg7vX2YEk+dNy/vq Rny9xfKOcPG8kJfdWD+MBhjWLvMSQQ/GgIjmtYHY= Received: by mail-pg1-f170.google.com with SMTP id i22so925013pgl.4; Tue, 23 Mar 2021 10:44:11 -0700 (PDT) X-Gm-Message-State: AOAM532dDF9bkHRqb7lULm0hCTVi8i024ru6s4M92k+aTdw6SIHBgzNx tAkMJrM329UCwQk/dusHJAIu2M+ibxzTIdFBG6Q= X-Received: by 2002:a17:902:e80a:b029:e6:c4c4:1f05 with SMTP id u10-20020a170902e80ab02900e6c4c41f05mr7002419plg.33.1616521450618; Tue, 23 Mar 2021 10:44:10 -0700 (PDT) MIME-Version: 1.0 References: <20210315200242.67355-1-mcroce@linux.microsoft.com> <20210315200242.67355-2-mcroce@linux.microsoft.com> <7358d5ae-afd6-f0d9-5535-b1d7ecfbd785@linux.alibaba.com> In-Reply-To: <7358d5ae-afd6-f0d9-5535-b1d7ecfbd785@linux.alibaba.com> From: Matteo Croce Date: Tue, 23 Mar 2021 18:43:34 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next 1/5] block: add disk sequence number To: JeffleXu Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Luca Boccassi , Jens Axboe , Alexander Viro , Damien Le Moal , Tejun Heo , =?UTF-8?Q?Javier_Gonz=C3=A1lez?= , Niklas Cassel , Johannes Thumshirn , Hannes Reinecke Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 2:44 AM JeffleXu wrote: > > On 3/16/21 4:02 AM, Matteo Croce wrote: > > From: Matteo Croce > > > > Add a sequence number to the disk devices. This number is put in the > > uevent so userspace can correlate events when a driver reuses a device, > > like the loop one. > > Hi, I'm quite interested in this 'seqnum'. Actually I'm also planing to > add support for some sort of 'seqnum' when supporting IO polling for dm > devices, so that every time dm device changes its dm table, the seqnum > will be increased. > Interesting, thanks! > As for your patch, @diskseq is declared as one static variable in > inc_diskseq(). Then I doubt if all callers of inc_diskseq() will share > *one* counting when inc_diskseq() is compiled as the separate call entry > rather than inlined. > That would be true if the static declaration was in the .h, but being in genhd.c it goes in vmlinux once. Maybe you get confused by the inc_diskseq prototype in the header file, but the function body is in the .c Regards, -- per aspera ad upstream