Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp182828imm; Tue, 22 May 2018 16:34:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXTicxGlDT6eZcxOlyi6jRbI8OTSaxGHSLYrRVIkZ/oGiQpoFbHwqbdWVuAVTwQZRGVH5l X-Received: by 2002:a65:5a4a:: with SMTP id z10-v6mr385234pgs.243.1527032099612; Tue, 22 May 2018 16:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527032099; cv=none; d=google.com; s=arc-20160816; b=F9hvD8oE1zKArKxCJLT3ZIONBT57m2cqnzqcHhnlT/jHuU+LtBNiglKBgh05WRhe5Q GHQ5H3rLsyuKDaF+aENpGia63xLnB/cgAMD179aOM6CIS+D0I1+ZwGKTODnYGTUPxNtq N0078FJzRHffdwLEF8jDsa9qE0RTBEbB+Eo8Ot64Xauzo+z/FwDWEfa4T9dMjtC3sveM YuXkAU/2jCoxrFKqUixkZczvQ0aC7ncPNuGjjphDsrX0v/lXb1C91im5dFqQeWFZ+RWF b+catCQ0rNvP5yRcAiMidQX/IM3YqUtjMT5b8Da2na8Yw+S23LUKkfAnvZlbcFtAvcDT wWoA== 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=4ArQa6b2YghMtK8fw67VUOmzvygihrqh3Vz08xa6tGY=; b=FYu8imXzMt++qETrWet4HQNLO173c8XJhKUnES9JYl90QhN3XjF7VbihP5IrZ1aXn6 Cut9uTx/N+PA/qrNJJFMMB2m6bHCykZ6yPKMfTUcz+dJWff897PIirJOFdTTIANTH6my 1PFmw2KFStPIuBOaEd1mkKSRpVuviFqejjPTU5cZ4ZcsnZcBDW5hJiGknf7UbsTRe2lI HPGId3WdB8RkDmzhqTMxmYIKEygZYRRtLkQ/DQ3eRe8QiPa7377V8FOyIUVdK+EDsqkt Hf76ja8oBjB9iIofMxgCVcF7hOScxJjmZeSAzqOsfoIesGCYxHFb0phOE/IOQzTpxizp SqUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ov9zfttA; 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 132-v6si14022980pgb.674.2018.05.22.16.34.44; Tue, 22 May 2018 16:34:59 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ov9zfttA; 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 S1753418AbeEVXeO (ORCPT + 99 others); Tue, 22 May 2018 19:34:14 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56430 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753100AbeEVXeM (ORCPT ); Tue, 22 May 2018 19:34:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4ArQa6b2YghMtK8fw67VUOmzvygihrqh3Vz08xa6tGY=; b=Ov9zfttAOpsWQm+cmOWOAp8GtD o0Yi+KhMp1n3PFqEDvu7xspzO6Dk5zzuaMA1phHCV/i5aYWmtbbuE8qUrD4OeRtqd2vaq3Gs5mJIx 4VwmIiyR4gYeoUyg1TNqLtBLfzTA7qw/Br/x23puJIbI8NkceWEDpiY7Fht5tGVerHy8JRGccv3rY 8UbS6MtRuiXIkXumu/oh37oERWeVuu4VXtqKTU0MDnfH9nXsCzyCf0ACV8vO0CksplrFY7+l6mmX0 qNeOlvfxuEZAMjJHGXIOWiVS3Cg/aGOKGD5OrOqGvdtfwvtMAP6tUt/vV691E1bQVkuxA6/hZdNJI 6OpKXsyw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLGn6-0006Q8-S7; Tue, 22 May 2018 23:34:05 +0000 Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI To: Kees Cook , Jens Axboe Cc: Christoph Hellwig , "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: <20180522181512.39316-1-keescook@chromium.org> <20180522181512.39316-4-keescook@chromium.org> <20180522183613.GA3784@infradead.org> <732f4249-5681-4a54-ec21-4ecc3d3a74e5@kernel.dk> <20180522191309.GA23615@infradead.org> <8d4af5c4-96fa-54ee-d5c1-b887b1de5a3c@kernel.dk> From: Randy Dunlap Message-ID: <66701f74-4f2b-988e-dd48-a2140694f551@infradead.org> Date: Tue, 22 May 2018 16:34:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: 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 05/22/2018 04:31 PM, Kees Cook wrote: > On Tue, May 22, 2018 at 12:16 PM, Jens Axboe wrote: >> On 5/22/18 1:13 PM, Christoph Hellwig wrote: >>> On Tue, May 22, 2018 at 01:09:41PM -0600, Jens Axboe wrote: >>>> I think Martin and Christoph are objecting to moving the code to >>>> block/scsi_ioctl.h. I don't care too much about where the code is, but >>>> think it would be nice to have the definitions in a separate header. But >>>> if they prefer just pulling in all of SCSI for it, well then I guess >>>> it's pointless to move the header bits. Seems very heavy handed to me, >>>> though. >>> >>> It might be heavy handed for the 3 remaining users of drivers/ide, >> >> Brutal :-) > > Heh. I noticed a similar sense buffer use in drivers/cdrom/cdrom.c > too. Is this okay under the same considerations? No. Do not select an entire subsystem. Use depends on it instead. > diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig > index ad9b687a236a..220ff321c102 100644 > --- a/drivers/block/Kconfig > +++ b/drivers/block/Kconfig > @@ -79,7 +79,7 @@ config GDROM > tristate "SEGA Dreamcast GD-ROM drive" > depends on SH_DREAMCAST > select CDROM > - select BLK_SCSI_REQUEST # only for the generic cdrom code > + select SCSI > help > A standard SEGA Dreamcast comes with a modified CD ROM drive called a > "GD-ROM" by SEGA to signify it is capable of reading special disks > @@ -345,7 +345,7 @@ config CDROM_PKTCDVD > tristate "Packet writing on CD/DVD media (DEPRECATED)" > depends on !UML > select CDROM > - select BLK_SCSI_REQUEST > + select SCSI > help > Note: This driver is deprecated and will be removed from the > kernel in the near future! > diff --git a/drivers/block/paride/Kconfig b/drivers/block/paride/Kconfig > index f8bd6ef3605a..7fdfcc5eaca5 100644 > --- a/drivers/block/paride/Kconfig > +++ b/drivers/block/paride/Kconfig > @@ -27,7 +27,7 @@ config PARIDE_PCD > tristate "Parallel port ATAPI CD-ROMs" > depends on PARIDE > select CDROM > - select BLK_SCSI_REQUEST # only for the generic cdrom code > + select SCSI > ---help--- > This option enables the high-level driver for ATAPI CD-ROM devices > connected through a parallel port. If you chose to build PARIDE > >>> but as long as that stuff just keeps working I'd rather worry about >>> everyone else, and keep the scsi code where it belongs. >> >> Fine with me then, hopefully we can some day kill it off. > > I'll send a v2. I found a few other things to fix up (including the > cdrom.c one). -- ~Randy