From mboxrd@z Thu Jan 1 00:00:00 1970 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 097BC3205 for ; Fri, 8 Mar 2024 16:32:41 +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=1709915563; cv=none; b=lRWsoENRgNUrdak1n822LUPLmFGpBi3ZM3SW0UjnmmlOwVpxDYHNwSquEYLkL5qWrqiJWVkXZuBQt28Ce9BMIE9/TTKufGl73wnj3UMX+8siRZIvl2Su909grZ7P01jlSFjSVRgWmhiA10UYtna17USUKrEb5u2NIjkfc6JEXFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709915563; c=relaxed/simple; bh=gd6Sxjdr57kFNJdJzGgYm5a/F1ma0tRWs1BpE8XvNMc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fBGdcfvy1qkLSeJ95qUE4tomU9lBEXptHwxWxAZmYq+4Y28UU1EVfABg8jyf/kDVd/KOvQbRIXB8vIJODWl37JmcmqXR3Lsuixogmh9qqyo4aH9qSXxjV86viqXmVSPAydhNcXZ4brIOjYrb+SQ76GYMnMQGfEw8E2e6yGcJC5A= 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 5767268BEB; Fri, 8 Mar 2024 17:32:38 +0100 (CET) Date: Fri, 8 Mar 2024 17:32:37 +0100 From: Christoph Hellwig To: Saranya Muruganandam Cc: Yu Kuai , Christoph Hellwig , linux-block@vger.kernel.org, Jens Axboe , sashal@kernel.org, Ming Lei , "yukuai (C)" Subject: Re: regression on BLKRRPART ioctl for EIO Message-ID: <20240308163237.GA17159@lst.de> References: <20240212154411.GA28927@lst.de> <27bff287-049d-5bbb-2392-fd5f099bed3c@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-block@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Mar 07, 2024 at 10:14:05AM -0800, Saranya Muruganandam wrote: > > I think we can fix this by returning error from bdev_get_whole() if > > bdev_disk_changed() failed, this will cause that open disk to fail now, > > however, I think this can be acceptable. > > Thanks for the response! > I agree this would fix the regression for the ioctl. > However, since returning an error from blkdev_get_whole is new > behavior, I wasn't sure what all parts it affects. > > So this is just a ping to let you know that I am also waiting to hear > from Christoph. I'd hate returning a failure and changing the interface, but I haven't come up with anything better yet. Let me thing about this a bit more.