From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752925AbdKWN1L (ORCPT ); Thu, 23 Nov 2017 08:27:11 -0500 Received: from mail-io0-f173.google.com ([209.85.223.173]:39904 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752445AbdKWN1I (ORCPT ); Thu, 23 Nov 2017 08:27:08 -0500 X-Google-Smtp-Source: AGs4zMZ6EwJLxMlFIHr0VDAJgfFMP8vNciSxz0VclEdnc7f+hLT+cRDt5/EhRAk4a03bY6ZGfKbkEdILBwjBi44AXfc= MIME-Version: 1.0 In-Reply-To: <1511271770-3444-7-git-send-email-adrian.hunter@intel.com> References: <1511271770-3444-1-git-send-email-adrian.hunter@intel.com> <1511271770-3444-7-git-send-email-adrian.hunter@intel.com> From: Linus Walleij Date: Thu, 23 Nov 2017 14:27:07 +0100 Message-ID: Subject: Re: [PATCH V14 06/24] mmc: block: Simplify cleaning up the queue To: Adrian Hunter Cc: Ulf Hansson , linux-mmc , linux-block , linux-kernel , Bough Chen , Alex Lemberg , Mateusz Nowak , Yuliy Izrailov , Jaehoon Chung , Dong Aisheng , Das Asutosh , Zhangfei Gao , Sahitya Tummala , Harjani Ritesh , Venu Byravarasu , Shawn Lin , Bartlomiej Zolnierkiewicz , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 21, 2017 at 2:42 PM, Adrian Hunter wrote: > Use blk_cleanup_queue() to shutdown the queue when the driver is removed, > and instead get an extra reference to the queue to prevent the queue being > freed before the final mmc_blk_put(). > > Signed-off-by: Adrian Hunter This is way more elegant. Reviewed-by: Linus Walleij Yours, Linus Walleij