Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9623842rwd; Wed, 21 Jun 2023 09:38:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4O3zQg+fV8ceAyHxmyk/zcQJGY2SMSZSG7lFeIM3/OoqGSMH9HvZfTZZxkSsYH3KnSwoOr X-Received: by 2002:a17:90a:4902:b0:259:a879:cb8f with SMTP id c2-20020a17090a490200b00259a879cb8fmr5917628pjh.7.1687365487837; Wed, 21 Jun 2023 09:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687365487; cv=none; d=google.com; s=arc-20160816; b=Us+BTiQ+D5Bki8gRjrZS7YQstvs3Qig6gukuaZ3s0jWbVfLv+3i6x6fHnmosPrNIiE EBfBUITAaCrN2DES50CMg1/dZcDlPI0/RKnOCeJKwS9Yt86L4kT8dhj0Mxnjr6DmILXl A5PnHtCoOW8sX2Edlh+hMx+1ksT8H/qr4Mn/W8askKBqp/WDbNIb09kM41JvZQ9BlOxE BhPf7D6r4uSuMQK6vGBGjKHKYCnktiFLLv2PFNfahH4WliGiE55dMDs98y0lhUKPCeiF GDsFOz1wDNY8X9pZfBTJAfLSOgrbkyOuWQTMg9Fh5EaQfHJ2qTLr3IvHvugUwtrJZH1G 0MrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=ANhBuY1BkJQHuvukRlCiWkcwmUgmv7RsjD/BodsFM8Y=; b=Sp9ETbUIBXNS3W1QKHo61TcaeTSFg6Tj+qk6HDObc8F6K10zW/oCK0ql3YoQ8d0PaQ /Qzwr8d6Tbgsi8B7vrVhLWPZG4ac1/+cMtSx+DG1WldufZ9950hK9S9HXi+tncMHPq6U KKwNG/BQfftblBJCyxuUtAjc0CrBcJtR8HGPXBBS0PtMQdeqe4ajR+TQPxFlmp3i3b6J Mu4dXcyqYW0QAUBMzX0VXVveTsju3H2tR2SHqurN0kCib11veK46qKZy/htm1SnkFjpc HkJQBIhFdryCERbDhh3Of6uBiWR0jF1/Z/DyTPugMaK/gbmPuJLdNFFQn0niLUSBWxid PQOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a17090a664f00b0024c1ddfa1bfsi11943459pjm.92.2023.06.21.09.37.56; Wed, 21 Jun 2023 09:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjFUQGb (ORCPT + 99 others); Wed, 21 Jun 2023 12:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbjFUQG3 (ORCPT ); Wed, 21 Jun 2023 12:06:29 -0400 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FA2895; Wed, 21 Jun 2023 09:06:29 -0700 (PDT) Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-25edd424306so2129885a91.1; Wed, 21 Jun 2023 09:06:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687363589; x=1689955589; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ANhBuY1BkJQHuvukRlCiWkcwmUgmv7RsjD/BodsFM8Y=; b=aaZFt0nsdG8OG5jOJ7Ms305MMoSO9emUcEcFw/fDHSV0Zms4zL0EnoHBmy22I8eHMB Sepd9JWQ5/MQeW5+uhRFZDfVi/CYCNmgzsIH1ZJuW/xnY7PKd5XiP8bH0jI+CzfzarnI svKlKRd5MLwOOAI8Xoswm1wkl0diKcDPOAvTV+K27AvkPV2FuxyoIdOxweGzZ9u5WSVA pSR9vAb9Zb3tPIEfCwz32I+y0lJ1AbsriyX6iZwPt0bL+FYwHanFGbcXAmDt2WwZr4kp 3NupUN/bESUCGFmaA0qag57ffa2xU347lVWepo0zA73j6Yfqbf/XeggfeI0H/Zb1JCjd VFVg== X-Gm-Message-State: AC+VfDyUPCB01aQ0UJ9EbHhGEBeXhMk4j8CeZ/WHIbS3T3Do2jkF90bu lttHHPNR9o7HjenSqTPtxi8= X-Received: by 2002:a17:90a:db15:b0:260:de07:c663 with SMTP id g21-20020a17090adb1500b00260de07c663mr3061072pjv.27.1687363588637; Wed, 21 Jun 2023 09:06:28 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:9bb2:be1e:34e3:7c45? ([2620:15c:211:201:9bb2:be1e:34e3:7c45]) by smtp.gmail.com with ESMTPSA id g14-20020a17090a290e00b0025e9d16f95bsm3615989pjd.28.2023.06.21.09.06.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jun 2023 09:06:27 -0700 (PDT) Message-ID: <02a90139-a94a-ea1d-cc36-8b4b66a96bba@acm.org> Date: Wed, 21 Jun 2023 09:06:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] scsi/sg: don't grab scsi host module reference Content-Language: en-US To: Yu Kuai , hch@lst.de, chaitanyak@nvidia.com, shinichiro.kawasaki@wdc.com, dgilbert@interlog.com, jejb@linux.ibm.com, martin.petersen@oracle.com, yukuai3@huawei.com, axboe@kernel.dk Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com References: <20230621160111.1433521-1-yukuai1@huaweicloud.com> From: Bart Van Assche In-Reply-To: <20230621160111.1433521-1-yukuai1@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/23 09:01, Yu Kuai wrote: > From: Yu Kuai > > In order to prevent request_queue to be freed before cleaning up > blktrace debugfs entries, commit db59133e9279 ("scsi: sg: fix blktrace > debugfs entries leakage") use scsi_device_get(), however, > scsi_device_get() will also grab scsi module reference and scsi module > can't be removed. I just noticed that this patch has been posted on the linux-scsi mailing list. If you plan to resend this patch, please send it to Jens and Cc both linux-block and linux-scsi because this patch fixes a bug in a patch that only exists in Jens' tree. Thanks, Bart.