Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp839661lqp; Thu, 23 May 2024 01:12:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9/DiMVdTFBHLRbZ0NNL6xMmijwoHAhP2MEP2SR7l/H6rdVQIi5hs9gUd1xc9nM62p9N9KgwVOWCgynTZ5cjqKtyOZpxCis3wfMqjqgQ== X-Google-Smtp-Source: AGHT+IGM6D6kQet5cvo31dMqa+i1cRA9rEp1/NPp8mrWSb1+QGhigkMdMOJv9q+7FbDXzZ9VFUUi X-Received: by 2002:a17:902:c652:b0:1f3:33ca:eee9 with SMTP id d9443c01a7336-1f333caf04amr20690695ad.15.1716451964158; Thu, 23 May 2024 01:12:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716451964; cv=pass; d=google.com; s=arc-20160816; b=zZ9ljIqxEuv19fZY33HGdccZnGP2lnau0NZxsBcwZhGb5lxsJlgMm5MNtSUfMx++9d z/xELWP3x63KyncChlrk3txSjJ5cbGuLfFnXpmzr9tFKWtwYwI+XeYCzXltotdOOLXiK hLrHSK/HGyZw8115SYkkfHpghVOwZdJgPxgcWZTIQVNwmQMj84FaRfW8nbeRbp4IM7jc 8ebgi2V9Gwvt/RN13v3aEiTTaRxLuP+HFz4WdgHrberFLPnYMSq3GwzMkbWeE0WB/3Nu 7itbwQ074S/JUJzqb2kUeUlYbzGxVdBVSHrwAGOm0yH0bwZWbb1quwlorTDSkPEQVXBZ PLTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=GiS0l/t/EMbiG3Fc4pwBgmlqOQwWN26xi729dZ1J9bs=; fh=u2NRCq1TV32Pq/Do1cvZqfgR4OSwtz0I/7GHBpfxvLE=; b=0TUP5lK973SjSuxTADVSUPcjiQHn67GXNHHrkdOydIESDL9SUAkPUf96uhZAMZBoQX 11cjfTVdjijzA+pv5iHqRSaUH/NXiGLcjCfBwiopAxm1CjNq/tqOojB1VtBWv9JLOtpw XF+4cqezZNCOQpdTH7gb8WhDbZaAeFO23qxEjtE1vMkppwSAPbM/ZLmaCEBvbtulPU1Y omR0jEvvCO/J4zb42Ze79INd39SMinFIhqrwP9iHaBxm+bVbVidwoWc1sS6TYSLSAOa+ BlNK4myu9tYk1EzWKYtt96o3ZhAM7Jps1A+T6LihH/f/s5XOj4ATDqIS16mrJbEGukXV rbtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-187170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187170-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f32e5b9d2bsi18142035ad.163.2024.05.23.01.12.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:12:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-187170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187170-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9198282506 for ; Thu, 23 May 2024 08:12:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADB5213CA89; Thu, 23 May 2024 08:12:36 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 644DA12AAF0; Thu, 23 May 2024 08:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451956; cv=none; b=EpSAFIMv7IWlq1V447J9yJ8OyzOaoER4fI9ANWyUrNgge8yIkaDwLUTbpTaBkgzVdvMkzbE4kjarFZbJhYjgaD1WDTxZ6sax5C4RBHaXfbmhrwiOXWgoVSYPyK5k6ZGbUJ4HrSZJS3ACaJC2NhB0QpnsL8NouJsBgui0noSAyTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451956; c=relaxed/simple; bh=GiS0l/t/EMbiG3Fc4pwBgmlqOQwWN26xi729dZ1J9bs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O11YB2qbhoDDH6G5E7iiAxCAmpph0hI2CiOFs9NjxGbwJodnPO5h/CdRWchDWypdv/IHKHDxfxOTlYPpFg4S16Jj82Z5bla1yIVKs6SePFpO9ajT8a7fXvwGPg2n05wB6ymLAUr5WUxBQQ36rg0cvaV4D1ebBgC8uvt4ptYxmP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 278DC68BFE; Thu, 23 May 2024 10:12:31 +0200 (CEST) Date: Thu, 23 May 2024 10:12:29 +0200 From: Christoph Hellwig To: Gulam Mohamed Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@kernel.dk, shinichiro.kawasaki@wdc.com, chaitanyak@nvidia.com, hch@lst.de Subject: Re: [PATCH 2/2] loop: Test to detect a race condition between loop detach and open Message-ID: <20240523081229.GC1086@lst.de> References: <20240521224249.7389-1-gulam.mohamed@oracle.com> <20240521224249.7389-2-gulam.mohamed@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240521224249.7389-2-gulam.mohamed@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, May 21, 2024 at 10:42:49PM +0000, Gulam Mohamed wrote: > When one process opens a loop device partition and another process detaches > it, there will be a race condition due to which stale loop partitions are > created causing IO errors. This test will detect the race This isn't really a 2/2, but a single patch for a separate repository.