Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4209890pxv; Tue, 29 Jun 2021 01:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw18LNhjZHCb+hrqlI6xEwk0LvLvNV306wIpIOwQmiThn9Sim/pOqCeIIiOTOR4ZFuoWYsN X-Received: by 2002:a6b:7948:: with SMTP id j8mr2924965iop.32.1624955035278; Tue, 29 Jun 2021 01:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624955035; cv=none; d=google.com; s=arc-20160816; b=ws8cP4eV43PvupF1ubE5Q/gZvRWkBodKTp1HCn6JhW6LaoyG/SW+LULzUJmMwkTnjU xwapyGmSIaAh5yCZsv1s1T4gEq6so8FZ5k8auF0JnA1CAsrgz5OrOIFYyPfFyEQiEDa8 WjF+y7oelDx5XOGJlVp7P3Rf7UzRZUS4j5nkUK7T9DcsDg/nbUGwfiLMBps7CULgigMJ wy1JvgRpvOozStP/Qj5zOdM47L8IBkbO5TwdNGNVwDomzTc4jB8/7M06UQBYSrluUPDI v7oMp8x4D23IC24QuJhnbOxydN9fmk1SnmULB07JmJZ5bQyHBg93lH240Pw8xtpwBzmP 4JYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=XiMa6dzQX0o+TzwQDiCqGjUF1iJUU0EjJMyWXQlfeng=; b=XOND1DcEYzzhToozKB4lD8oHrrR8HN65b2nFqxMgp11bZLvVVhNiLeshRDuWFMlsIb G21DTCqasvE9+dn+Ni02NXhpqATJccBSV7V5vdM2ncEnY0xV+Dh+DZwj280rwlt1+71r HAC+lzysIxuf+dNVLa/fT9mwTuqX1+4YI9dkSoR5F18ZobBf+Qvzp3w5tPcHJcITEO2Q DuNNP8CO27qn9Vc3S5T66xhUEcL5wv38YYw22SqQANt52ufuj23vGhxDoDiTjDG0X3/6 H+WfqOm2Dp03wqImnDbcbgd9BfV9N01W/vKIotPylwstwg5Z9k9odoJoE2d1lpTXi+By EVhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si21726212iov.42.2021.06.29.01.23.43; Tue, 29 Jun 2021 01:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232603AbhF2IZK (ORCPT + 99 others); Tue, 29 Jun 2021 04:25:10 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3328 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbhF2IYz (ORCPT ); Tue, 29 Jun 2021 04:24:55 -0400 Received: from fraeml744-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GDcdd4jBLz6GBS1; Tue, 29 Jun 2021 16:12:05 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml744-chm.china.huawei.com (10.206.15.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 29 Jun 2021 10:22:26 +0200 Received: from [10.47.83.88] (10.47.83.88) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 29 Jun 2021 09:22:26 +0100 Subject: Re: [PATCH] scsi: Delete scsi_{get,free}_host_dev() To: Hannes Reinecke , , CC: , , , , References: <1624640314-93055-1-git-send-email-john.garry@huawei.com> <044a31ed-f6e9-3017-4973-3a02765933e0@suse.de> From: John Garry Message-ID: <77afd764-4195-188d-ef0e-c4adcfa38f8b@huawei.com> Date: Tue, 29 Jun 2021 09:15:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <044a31ed-f6e9-3017-4973-3a02765933e0@suse.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.83.88] X-ClientProxiedBy: lhreml751-chm.china.huawei.com (10.201.108.201) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/06/2021 12:55, Hannes Reinecke wrote: > On 6/25/21 6:58 PM, John Garry wrote: >> Functions scsi_{get,free}_host_dev() no longer have any in-tree users, so >> delete them. >> >> Signed-off-by: John Garry >> --- >> An alt agenda of this patch is to get clarification on whether this API >> should be used for Hannes' reserved commands series. >> >> Originally the recommendation was to use it, but now it seems to be to >> not use it: >> https://lore.kernel.org/linux-scsi/55918d68-7385-0153-0bd9-d822d3ce4c21@suse.de/ >> >> > Please don't. ok, we can take that as a nacked-by for now. > > Before we're doing something like this I would like to have > clarification from Christoph which way he prefers for reserved commands. > Personally I _do_ like the host dev approach for reserved commands as it > allows us to re-use existing infrastructure. So when you deleted the gdth driver, the request there was to delete this API. And in the v8 series, again, the request was not to use it, and use the dedicated request queue instead - I do know that this conflicts with the much earlier suggestion not to do that, but that was when gdth existed. As for reuse of existing infrastructure, using this API seems to add more code than it reuses. So don't we just need to add a dedicated request_queue for host? I don't know the use in having the scsi_device. Having said all that, we don't seem to have a host request_queue sysfs entry with either solution, which would be good. > > Christoph? > Thanks, John