Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1959117imm; Tue, 22 May 2018 12:11:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo0WOrVy/6w7Ft0DL1j7Fx/y64RUmJ0Eqbjb9Jb9cyRdlWSaPAjRz8lYLbjUfqREPmTetkO X-Received: by 2002:a62:e50d:: with SMTP id n13-v6mr25331887pff.125.1527016279473; Tue, 22 May 2018 12:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527016279; cv=none; d=google.com; s=arc-20160816; b=dt6jRzkYLL6v4YBXlGsa0zkibKClVAfxRD67LvbNmy5tzxMNP2UftssvHhz4pI4xNQ cL2DoIlCCsFeoihdA8yIuzoQ+880Mk5Y2CseRrl6M+ipRs2hnV3du/56/XUId+bgRsL/ 5IO0DLtveu+o5wD/bvwO3Ysi9cC0q0Jf1knTVIZflVyjHMwCF0V5hNQCiCap4CTTQc4A d5yK85BS4f1kyrppVabkSPrEfX1zsaVc7aFehg2Ozpmk7+2zw1yYNfEmMeaHQXtejFZm 7nInGVrYdQba0lJHH+nMThFt8kJyie1fYDmfKs3JRn+8wiBBL2gwJnfCsPrPSctXcPWL gN1w== 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=gVpvTwIYg2t2Xe0icGXG4PCbRfHrkqE3UD7FIgpcry8=; b=KedMz5PgPKfwv6PjpAjcDjnV4R9sZinxeKufqg8a3Pwoo9D9azdtUIpOiV92nFX+L7 4jlqsMXwXeq1qdb0LmqLuyT/Bj/aVSljveJZt39YAVaiCjipL6jwnsp/I+PP5NobSxsb s9xylqcwmIpC9Okzh5KqhlPDg+HxQQV8+Q9zay44H4XTduGs3hQncudPW4bW/vMsJ152 xE9+g+MWe4qBsWgB/nqI/idZ5L2MRscSu7oVeKZr8noC4BdYQc6GTP8yc/6IU8uf4Z1F 2HQUb/dEMsf4HEla2ALGeZE5JM1BhOvIpDjsFqsCn9oILhmWzqjnAgJHoXzFrcmH1AIc pHWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=YC0hpqkI; 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 u6-v6si10943281pgo.144.2018.05.22.12.11.04; Tue, 22 May 2018 12:11:19 -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=YC0hpqkI; 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 S1752161AbeEVTJr (ORCPT + 99 others); Tue, 22 May 2018 15:09:47 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:41363 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752075AbeEVTJo (ORCPT ); Tue, 22 May 2018 15:09:44 -0400 Received: by mail-io0-f193.google.com with SMTP id e12-v6so19789928iob.8 for ; Tue, 22 May 2018 12:09:44 -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=gVpvTwIYg2t2Xe0icGXG4PCbRfHrkqE3UD7FIgpcry8=; b=YC0hpqkIWxC5R4hMAe5f0SU00pKzLmKC9cXGFfiCuMQawZFT9OgCu3UVhxOAx98tlx lHaNQF/mluTAYQx2Z6aKgEaZh+MlsiwdTKfO6pgK2vXmOuM1uPdTbV+7Mz+FoCuBC4CV nIHJRy7gCL2XHDU9n+OQ67M98uibP0QjzDFdtZvopsCop18C/aVOEXMA7hLepiVx39cg buqFjZ59wt1GwPBS7oRMYPIHkhAT2fdvPkagpRzhXzbea3DTwrOZhMLRiQ4lm1LN+NmS anX4eobCPyVzkT3GAcEgj9Buwryx9qqgqys1sQGVxxVFFFXae7EBioVEbE2m8LwhN2wG bmew== 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=gVpvTwIYg2t2Xe0icGXG4PCbRfHrkqE3UD7FIgpcry8=; b=XQtUPueG77GLW7TWF/+6JkJ2nuuNaTtNuf2uJzSMLmOkNWZEq3HiQLuO6QjOIcbsnx KQGCxctgz1DncvwwZ+g5uwscXmWQFB50ElAStHN8aKLQA0tdtgNP02POEXrMCnWgRGjV ykq1yKtmFShasEzy3lYYTpGb76FdZ0D8P2zVokyx5Qa+5t0W0/mqeJB1H0Obv2Kh9geN F7m96Pquju7JIYxtvLaE/ZL4/9jiJA92p+pCcRmjl7Tpg1Z5deau1apFUOwwwbc+dej4 ma8qTs/WDwHz70k+sJ16EGbqgx6E08AclFnY7pWg4V0DzCXAHSuz5JWiatOrAeQoYZxZ obgg== X-Gm-Message-State: ALKqPwfzRJI+D2a4YoWsV9wuLP+fBVeH264D44d33voLeILanNLyke0X 5oZXSCO2nVlSYqAi7UxwylJEwLXscUU= X-Received: by 2002:a6b:c585:: with SMTP id v127-v6mr28304505iof.85.1527016183729; Tue, 22 May 2018 12:09:43 -0700 (PDT) Received: from [192.168.1.167] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id k130-v6sm320996itb.0.2018.05.22.12.09.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 12:09:42 -0700 (PDT) Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI To: Kees Cook , "Martin K. Petersen" Cc: Christoph Hellwig , 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> From: Jens Axboe Message-ID: <732f4249-5681-4a54-ec21-4ecc3d3a74e5@kernel.dk> Date: Tue, 22 May 2018 13:09:41 -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: 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/22/18 12:59 PM, Kees Cook wrote: > On Tue, May 22, 2018 at 11:50 AM, Martin K. Petersen > wrote: >> >> Christoph, >> >>> On Tue, May 22, 2018 at 11:15:09AM -0700, Kees Cook wrote: >>>> Both SCSI and ATAPI share the sense header. In preparation for using the >>>> struct scsi_sense_hdr more widely, move this into a separate header and >>>> move the helper function to scsi_ioctl.c which is linked with CONFIG_IDE >>>> by way of CONFIG_BLK_SCSI_REQUEST. >>> >>> Please keep the code where it is and just depend on SCSI on the legacy >>> ide driver. No need to do gymnastics just for a legacy case. >> >> Yup, I agree. > > Oh, er, this was mainly done at Jens's request. Jens, can you advise? 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. -- Jens Axboe