Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp187689imm; Tue, 22 May 2018 16:42:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp6w6AJyGYGXux/0E8Tt03O9Mf1BoUpFd/vNK/dUd3hgEmlhirOx6LGRhIQbcNNgLh3qr/w X-Received: by 2002:a62:d508:: with SMTP id d8-v6mr483250pfg.234.1527032562057; Tue, 22 May 2018 16:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527032562; cv=none; d=google.com; s=arc-20160816; b=b4hNOv9o/8WajoowF7Ggp9GNyaxCWgVA+1kJwD1+Yfz5dSS83+o2OUK19sPMvO78lL JG6sLcSXJcTedwodLDjnaWOJgqlNbvqgvrJcPLhkla03nICbp3ntXsxGxIoF7N8e3L+a WSpdy/datDLdqrk+PlkGqoKEH4fcLszDL4kr9tGdzReBvO/BaCY/zoOUZm6DhrBBLQ+5 1NKVlkZ8p3FS7GTisbIWTk7p9RLt5yRWrWbICZNJ369tAxKRRZlYEVAdQlJZ9L+RHAdr wOF5wqXiPYEZbdWmF8NhyHkMXElcY3n9Opm+8BGIwl8atMRr5Bd34cvCA5EW0D/tovWL /P4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=JXv/OzuIvPLfxQs13gvrXIhHSM78DyaN/vzfFl6rQ4M=; b=fuLYODErQ1pWgFCBPyB/hwTQI0mFRUv+iY716/qFmGMMEkpL19Ml/cYKldJEQa0Hiy e+o90ud2xihuiteMaviZ4liO6GZR53WWEW3zXrp2mPjoTPoZGGcgKjIP9/0G7LZG7yRv e8cSfiPESnR1wmfUh+vJUqA4MLtz19E3M5CEHlAnGQxV3E0i4HTeoUPK7sB8uzS1RQKO FYiLz0DBa5TgrJK0B017iHNXkbgbD+O/Dp7uzloTOzsuGrz71YVphr+VGK05LjnDgVpQ /fHU6O40qsIFKU0gm1VyAuO/PZ91ZlOb6CekN22M3736E4EnI2C4XpBvZYakseRMNyHU tRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Vw0HTZb0; 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 bj1-v6si16826681plb.395.2018.05.22.16.42.27; Tue, 22 May 2018 16:42:42 -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=Vw0HTZb0; 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 S1753577AbeEVXmM (ORCPT + 99 others); Tue, 22 May 2018 19:42:12 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:37617 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753563AbeEVXmK (ORCPT ); Tue, 22 May 2018 19:42:10 -0400 Received: by mail-io0-f196.google.com with SMTP id e20-v6so20601289iof.4 for ; Tue, 22 May 2018 16:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JXv/OzuIvPLfxQs13gvrXIhHSM78DyaN/vzfFl6rQ4M=; b=Vw0HTZb0DJZQsLpX8grmpe3jFCdh61Q5C7xf55Z4qeQ/RlyMEKnQFMXjAfR9Ah0zMn n6+W7yOHxVMqrtHzdsK3gH6WM2OD+jAjhdcceSNHMWwkIeAD6u2zquD31lgtMchEqht2 kfw+GMt899vJNgR2upV9hHYvOyny2nY47Ce2O+iGyd7NlqHV2Y+zgDF3h1Ec40waHTDu NgHsyRLK2GE6tOGeLrD9DkpJ9PaGwK9dNef+GE/84b28KOuKYrpg0lDSrdWdqKsMij09 mTI4pA2UKe4MTjOnM/Pq1c5dcYusLMy1GnD7/8wbsiOuahzSIfEf7kzR33/5uDfG+oWS pz8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JXv/OzuIvPLfxQs13gvrXIhHSM78DyaN/vzfFl6rQ4M=; b=KH3mdHSJ7SLBEZcQKcMxkCraDB4tzEz0pWVsM6UrIq5Uwr43pI3asqHkXHu9c6aL2R N3Aca3yriIoEo4Mafarw97E6E+MpXgY7TH2zuAyGMd0LgcXrIJFtdFJY1/9mALzqNK8g mrhYG0JUIgQFbYyWr3tvcmKZWUedv4Cxbzhb2+Wyx0Hw7tcYrrYcjA5FME42c+lsqafr aZ5qpup9oOqD5ghzDwpWhQqurpbnx4XQyJiznnmXi69FFZxVBNN4NVj92OMXRISpjapL veb0bUS0CDAq9rxznpO0PDKNuTIiXOom9kupe2r5iK7+muCi0cLnBNR7q7p/90KA9hYj Efbw== X-Gm-Message-State: ALKqPwfCwexXonaoJhdJ/mKqZviHMaJ1OztpWoWM/6XgHkOZMw+FhORH hXRC6nS9vhFEZkPM2+UL7YOD+A== X-Received: by 2002:a6b:9a91:: with SMTP id c139-v6mr447480ioe.99.1527032529457; Tue, 22 May 2018 16:42:09 -0700 (PDT) Received: from [192.168.1.197] (107.191.0.158.static.utbb.net. [107.191.0.158]) by smtp.gmail.com with ESMTPSA id s74-v6sm596314ita.43.2018.05.22.16.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 16:42:08 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI From: Jens Axboe X-Mailer: iPhone Mail (15F5079a) In-Reply-To: Date: Tue, 22 May 2018 17:42:06 -0600 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 Content-Transfer-Encoding: quoted-printable Message-Id: <9A0BC289-4203-4C77-A012-AAB07F42061F@kernel.dk> 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> To: Kees Cook Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 22, 2018, at 5:31 PM, Kees Cook wrote: >=20 >> 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. Bu= t >>>> 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. >>>=20 >>> It might be heavy handed for the 3 remaining users of drivers/ide, >>=20 >> Brutal :-) >=20 > Heh. I noticed a similar sense buffer use in drivers/cdrom/cdrom.c > too. Is this okay under the same considerations? This is going from somewhat crazy to pretty nuts, imho. I guess in practical= terms it doesn=E2=80=99t matter that much, since most folks would be using s= r. I still think a split would be vastly superior. Just keep the scsi code i= n drivers/scsi/ and make it independently selectable. Jens