Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5599200pxj; Wed, 23 Jun 2021 05:05:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztrbSh9r3NQgBgtERqjL1s7paq+cGX1gTeoyC1BLpcHbG9LIZUTUrNTNsHLGmJiYKGHTKL X-Received: by 2002:adf:f942:: with SMTP id q2mr10919272wrr.427.1624449931061; Wed, 23 Jun 2021 05:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624449931; cv=none; d=google.com; s=arc-20160816; b=Z7d++WEB5/FDxt9DB/Hm+ennEy/BQscWFjmcqkDmSF8uAOMAF+qn0eCjvDkcm5C0TQ u9YmLBiuBdhyU+ht00i6P/TDIOzUAL7JWIvB12Z/zSkvgHVHE1o0jTfuqfo5js96gfCy NXgz8i21ONDf05iIWN+mhrzVDFGnSzP9gzdfzapubzasHSN5E8ryXBILzqqEZ+ak3bDQ EHW0b/X34ffGCLRnJesNjbL8g2Dsj162m5UFx+sx2SigZAFbquBO6G3x+PLu6nHnKL00 CHAhcL8bYkilAgul/06BCHELd7d+SvSIGQn2vm+NSHfbEBzCtWQGaz30SH7f0xCQB1fs VYWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=pTV0UJMvjAlHC0068bqJsxAfZBAJ3v623+Gud9Q+2ok=; b=LQovKNDZmZE2UKXc7k44CKjqims2tzsSTQmHKkcuDpngU8aSRnDQdAD9PdE0QQ2/vn oINfjZ3295m+XiF3miDbD8aMbuca2ZWR8GKZpeBFhY+lzcRSz3CeyKRc+U5sppBzB4vi lS43v+MR+ZEaE1zougY/sWEp6ZMAkFYLCGyVHvS79DsRJASJMMcNXNNRmS14E2Zm7U1i hqEyVTdGtOXbxfsmSnhMUPEg8dVRGI/We0K8p5cih/fHbDgwpbl6A6M2BigpfVbFUsYo oYb3764bpeaVVwmrCiE6xsf6yBeorSakHt6ZREUS9dGvvs6bCxKxKoaH3d4HmiEKBuKd 3glw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=JEwVwd5l; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=YF5l59Li; dkim=neutral (no key) header.i=@suse.de; 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 dq22si1415137ejc.661.2021.06.23.05.05.06; Wed, 23 Jun 2021 05:05:31 -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=@suse.de header.s=susede2_rsa header.b=JEwVwd5l; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=YF5l59Li; dkim=neutral (no key) header.i=@suse.de; 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 S230273AbhFWMFr (ORCPT + 99 others); Wed, 23 Jun 2021 08:05:47 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:38264 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhFWMFq (ORCPT ); Wed, 23 Jun 2021 08:05:46 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 081741FD65; Wed, 23 Jun 2021 12:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624449808; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pTV0UJMvjAlHC0068bqJsxAfZBAJ3v623+Gud9Q+2ok=; b=JEwVwd5lWr59EcR28oxtQoQeflZEtZ6GtvIqFr+3qPap9DIqlIxS16dhKGeD88AdgHhrQK FnaGZl6LUbHmCXqawqEN/CTgAdCZYjbNY2Zq58VJ569soEXfRxCLgg/SnorvXx7d8ZtdW5 YHjUElLq6Fyl98xM/jRHIF7FsABnP5E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624449808; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pTV0UJMvjAlHC0068bqJsxAfZBAJ3v623+Gud9Q+2ok=; b=NwoYa3wurxv0LfPJNjQb5ZEd1tVjfIl9pupg76GLbPUHgiC4wWiYX5RAAVvfb5RlyXPytc j4Nna4Tidn/PA9Aw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id ADCA511A97; Wed, 23 Jun 2021 12:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624449807; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pTV0UJMvjAlHC0068bqJsxAfZBAJ3v623+Gud9Q+2ok=; b=YF5l59Liz2PwKX7sWBCPjDz8AJ/4dt0uGGV+1XjZDof0eMiBagemhhka4asURm2hQLjPHk pToA+nVJaTwvciMnCOeiYAJllplYa7V3i+WBOd2tbr8Zr07nHtB757209mun/fOjmXwXHB FA7WEn/722VuFam8SwPykndZg7ENp4I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624449807; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pTV0UJMvjAlHC0068bqJsxAfZBAJ3v623+Gud9Q+2ok=; b=phFHobecXngr10YyZGcNi33kkMtxHjkkaAk14F16/Y1M+JRLYUrn+0tW9Bj8hI1yrs1KWX xRKybiw+NIuYoXBA== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id rhDpKA8j02B6DwAALh3uQQ (envelope-from ); Wed, 23 Jun 2021 12:03:27 +0000 Subject: Re: [PATCH v3 0/6] block: add a sequence number to disks To: Matteo Croce , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe Cc: linux-kernel@vger.kernel.org, Lennart Poettering , Luca Boccassi , Alexander Viro , Damien Le Moal , Tejun Heo , =?UTF-8?Q?Javier_Gonz=c3=a1lez?= , Niklas Cassel , Johannes Thumshirn , Matthew Wilcox , Christoph Hellwig , JeffleXu References: <20210623105858.6978-1-mcroce@linux.microsoft.com> From: Hannes Reinecke Message-ID: Date: Wed, 23 Jun 2021 14:03:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210623105858.6978-1-mcroce@linux.microsoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/23/21 12:58 PM, Matteo Croce wrote: > From: Matteo Croce > > With this series a monotonically increasing number is added to disks, > precisely in the genhd struct, and it's exported in sysfs and uevent. > > This helps the userspace correlate events for devices that reuse the > same device, like loop. > I'm failing to see the point here. Apparently you are assuming that there is a userspace tool tracking events, and has a need to correlate events related to different instances of the disk. But if you have an userspace application tracking events, why can't the same application track the 'add' and 'remove' events to track the lifetime of the devices, and implement its own numbering based on that? Why do we need to burden the kernel with this? Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer