From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume Date: Fri, 2 Oct 2020 08:50:15 +0200 Message-ID: <20201002065015.GA9691@lst.de> References: <20200925161447.1486883-1-hch@lst.de> <20200925161447.1486883-3-hch@lst.de> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Rafael J. Wysocki" Cc: Christoph Hellwig , Tejun Heo , Jens Axboe , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Minho Ban , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-block-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux Kernel Mailing List , Linux PM On Wed, Sep 30, 2020 at 05:45:27PM +0200, Rafael J. Wysocki wrote: > On Fri, Sep 25, 2020 at 6:15 PM Christoph Hellwig wrote: > > > > get_gendisk grabs a reference on the disk and file operation, so this > > code will leak both of them while having absolutely no use for the > > gendisk itself. > > > > This effectively reverts commit 2df83fa4bce421f > > ("PM / Hibernate: Use get_gendisk to verify partition if resume_file is integer format") > > > > Signed-off-by: Christoph Hellwig > > Acked-by: Rafael J. Wysocki Can you pick it up through the PM tree? The big rework in this area I have planned won't land before 5.11 anyway.