From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF11FC4363D for ; Fri, 2 Oct 2020 06:50:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4F20206DD for ; Fri, 2 Oct 2020 06:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726042AbgJBGuT (ORCPT ); Fri, 2 Oct 2020 02:50:19 -0400 Received: from verein.lst.de ([213.95.11.211]:51231 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgJBGuS (ORCPT ); Fri, 2 Oct 2020 02:50:18 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id C736F68B02; Fri, 2 Oct 2020 08:50:15 +0200 (CEST) Date: Fri, 2 Oct 2020 08:50:15 +0200 From: Christoph Hellwig To: "Rafael J. Wysocki" Cc: Christoph Hellwig , Tejun Heo , Jens Axboe , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Minho Ban , cgroups@vger.kernel.org, linux-block@vger.kernel.org, Linux Kernel Mailing List , Linux PM Subject: Re: [PATCH 2/2] PM/hibernate: remove the bogus call to get_gendisk in software_resume Message-ID: <20201002065015.GA9691@lst.de> References: <20200925161447.1486883-1-hch@lst.de> <20200925161447.1486883-3-hch@lst.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org 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.