Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp919475imm; Wed, 23 May 2018 07:32:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqAFR7kWR8FfaLPu0ctad+fMYUh6+1P0ptmU2thNUBfNGge6y4XYGWQAGcS47PilNybpyUn X-Received: by 2002:a62:ea1a:: with SMTP id t26-v6mr3167234pfh.117.1527085938383; Wed, 23 May 2018 07:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527085938; cv=none; d=google.com; s=arc-20160816; b=wdX8HnprdBFxQFSe3429fR8JIstTwJfU1hKTXLXudfTpxk0ETpjYLWJat6Cpz+Twd7 tmJEefgCcpH2GLLPZxzHWVzCfZIDYpvuCXgiaslDxVeoEsTsAy9BafkgohzwnOLnVWXc Dh2L5rN4dlQ3ALb4zjD6oGME9qx7dpg5qeMbTjwnuJZSbl5CjFB68zLRyjYgueMH7Wk0 ggdA/kZFftxF7E6+OTxYQ/tIZLO09mqu04xpJo7g5J55i0qu7W8CFosqi6kd73PU7vDZ 292L1oW8bHM9pEycdZDIB2XqVYYBVkSEuA2eRNG7zXBqLY5ugIMz+F2So0MuchWwuWHO cekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=143z6zFM/7/T1pDNyN0kjGXEUwSSUvEcxIlzVjO423E=; b=ZqxSOxfehYUTBEGsy67zsl5qnsWA2MlOLC1V5xMyRRlEAUJFxIHouZf5uSHjKqj0Kh gTMj7zyTTb1LwAto/Jlj6mprGgJjCJ3FaCovpzod159n1gmJbEBc3nNU1IK9hDELkAhE yJMrg3rPBd+L53TNFq9NYx2pwDCBu7t63ZmmpS+KMMZl1owI8mfkXO2yUR04kH9xDwJj e5RL/bTupCVkFC34bqXeZEYaqb+38A7gEsMQanteW5SVfcDIAeAwtqvmI8DVN428Xrb8 fCNbrS/IG0kI7p1F4oOmzRr52Tp46WA35kAa9dJqTfh/WKMXyhLEQdDUux/dVzLaM771 xvZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Wf46k9vw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9-v6si19269026pls.334.2018.05.23.07.32.03; Wed, 23 May 2018 07:32:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Wf46k9vw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933240AbeEWOb0 (ORCPT + 99 others); Wed, 23 May 2018 10:31:26 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:33592 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932564AbeEWObX (ORCPT ); Wed, 23 May 2018 10:31:23 -0400 Received: by mail-io0-f195.google.com with SMTP id e78-v6so23018052iod.0 for ; Wed, 23 May 2018 07:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=143z6zFM/7/T1pDNyN0kjGXEUwSSUvEcxIlzVjO423E=; b=Wf46k9vwx42a+z93g8Y/msckzcnYnj5558yfTPLrtaWq9Tb8kBkau2lDNNRU//HdD/ FsXvfVs2BDlWni3M2H8a1u0j/tRDhr4sObbujmjybOJB6of78OnT07iocKt5n2iWbaGv v5y0A0fzeabaSxIMCAf/RVthKloYDziLmYdlg1z5pX6GKXS3ROHDz5QcN+sukOFKOSoF y0ClM+zp4wdaCbPjtq9BExppOBkjGJjUkgdsWpU31d5UY6HUAgTCBGKmk55Uxl/BnhOD 9DlB4HhJd27apG00I43ov6tjhbShbvGotZJzvoKFzdOSRz5ZerEOe0aVKg5SPkfHWmJW BmcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=143z6zFM/7/T1pDNyN0kjGXEUwSSUvEcxIlzVjO423E=; b=oPFW6GsabMC+WWylOMReFzlfunzV60oH2Pa5bFGOAfIECZqKQUGmuKK3ft7OgCGn9D vj6whrqidP9zTAcgZ3doOFdZxHH/saqrtGYkG7fDT9U2pclKPDBjDCr2IPU/0/GR4xrI XlEM4yyAQbKOR1dqZLG7IfsPirT8l6nM5+fGYjF6/CE8j1Pxqvnq3frKG+jjzZ1rv27N 0d/9g4dB05z5I7ZCsd2CRir0ZG0YsvsPrayPZ9JLLLgdxB6eKI2ptqUvNrDvyA8tQ7Ec tOYVmP1VyAoXC/h8NUmg7+bE51BusXFwu980HEXVdn8SGdkXoPXm6ULHGnctnHa8XRwI wJcw== X-Gm-Message-State: ALKqPwfPRYWY3BVUOERMBYBnG7R16hFupLmCQ+Wew0R3+8xYxqtIme4Y 5gCI/RouLZL72lU++NLfc2Zfb+OgNIM= X-Received: by 2002:a6b:710f:: with SMTP id q15-v6mr451191iog.193.1527085882364; Wed, 23 May 2018 07:31:22 -0700 (PDT) Received: from [192.168.1.167] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id w95-v6sm53749ioi.13.2018.05.23.07.31.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 07:31:21 -0700 (PDT) Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI To: Christoph Hellwig Cc: Kees Cook , "Martin K. Petersen" , James Bottomley , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , linux-block , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, LKML References: <20180522183613.GA3784@infradead.org> <732f4249-5681-4a54-ec21-4ecc3d3a74e5@kernel.dk> <20180522191309.GA23615@infradead.org> <8d4af5c4-96fa-54ee-d5c1-b887b1de5a3c@kernel.dk> <9A0BC289-4203-4C77-A012-AAB07F42061F@kernel.dk> <20180523142545.GA16248@infradead.org> From: Jens Axboe Message-ID: <24d36869-e037-042d-cb16-20a81b34eb76@kernel.dk> Date: Wed, 23 May 2018 08:31:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180523142545.GA16248@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/23/18 8:25 AM, Christoph Hellwig wrote: > On Wed, May 23, 2018 at 08:13:56AM -0600, Jens Axboe wrote: >>> Should I move to code to a new drivers/scsi/scsi_sense.c and add it to >>> drivers/scsi/Makefile as: >>> >>> obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_sense.o >>> >>> Every place I want to use the code is already covered by >>> CONFIG_BLK_SCSI_REQUEST, so it seems like I just need to know where to >>> put the .c file. :P >> >> I think this is so much saner than a SCSI select or dependency, so I'll >> have to disagree with Martin and Christoph. Just put it in drivers/scsi, >> if it's the location they care about. > > I actually plan to remove CONFIG_BLK_SCSI_REQUEST in a merge window > or two. The only users are scsi and the ide layer, (virtio_blk > support has already been accidentally disabled for a while), and getting > rid of it allows to to shrink and simply the scsi data structures. > > But if you want this for now lets keep scsi_sense.c in drivers/scsi > but depend on CONFIG_BLK_SCSI_REQUEST, that is easy enough to fix up. It could be a stand-alone dependency, doesn't have to be BLK_SCSI_REQUEST. BLA_SCSI_SENSE or something would do. I don't care too much about that, mostly getting rid of the entire stack dependency. -- Jens Axboe