Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17608258ybl; Thu, 2 Jan 2020 08:34:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzU6YRUG/DAC/vwbHUuZNEgHqxyxz1fkLIc2KUUGVKV+ZQe6J8Ty8P7H8P9N6N03m56fl6k X-Received: by 2002:a9d:4f0a:: with SMTP id d10mr77619925otl.85.1577982866360; Thu, 02 Jan 2020 08:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577982866; cv=none; d=google.com; s=arc-20160816; b=tvbskNgXA/dz24kYbhtHQj9lWPoXSCPnutGkguABdSACSsoeLWv/FF2yrcarf+BQJ0 K+Kju/8FxMI3MzS0u5rHVry6grqad+adgka5gCleTpYpyRnBgLiuYFcm4YwhnjlsyEME LDoGmWa9Li85cHmi23y3REkENtZYmI8pp+pQZImcOn9cFMkFle24ajaZVo3838Zj9Rd2 hZaagXxcbJ6zuRcHxiX+vjGhNWA77Hp0YjlB1S+BRACE9zo74rhXvUL1Otm4wwj8B1l0 FQpjOk8oF3rCYb0saYLX9YvfcbthfcUlYKy8aDygWH2Px2UxrPRh8qK2iWj0p+3y4QK3 xFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TlchMaIvasLMm30BcrAzvO65BEfeYNv4RmHmgwKHDHM=; b=eNuhnXB2wkxbpMYOlCCtlfPn5PZ0JkLLz/G5PPMUoU6Y4Z3heK2AuDH3NfifSUDiyo LvsI7p7Hw3/sCaTgcQJNgP7/qd6h4L9t5Nby1reSBfCrV2wIvySy6cFHSjTuupp2umme TV+PewnXaR9aJ3WZNphHnYCiv+7VXlYtjxzYm4qsZ/DY3eENFS1uAoQ+fq+rPuklXkAW 273CdDRdBZ4kFnJ6/cEk6VVAn+A8P2v6gE0kDeHrFGUNScAzGUXiA8Vb8mnmJmx1qUgJ FW2x+VzPf8ldE7L1k//P7YMPgJVrGpXg8aOwEAr/nzx/tprgXpsmTN9VDRWNcrwRFYUD 7O+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="AV/Uk42A"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si34321471otg.248.2020.01.02.08.34.14; Thu, 02 Jan 2020 08:34:26 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b="AV/Uk42A"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728847AbgABQde (ORCPT + 99 others); Thu, 2 Jan 2020 11:33:34 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48822 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728833AbgABQdd (ORCPT ); Thu, 2 Jan 2020 11:33:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577982812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TlchMaIvasLMm30BcrAzvO65BEfeYNv4RmHmgwKHDHM=; b=AV/Uk42ASCaTxh4rK+oyrgmCjHXNj5r5vyKYmcFGQaE/LI7TkqXVpjNIFauWL7cLKtiVvt jppTczM+bTWeaA3kX5RyJnAtw08xP7Tuh9HxgWKJMQbrr8Jnm6QNdP5WTBYqoySUjeCjRE Xz1POlZV+IOeRW15jC8+pqm81xBjSVM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-326-f6RSfu66O-SgKyoHEVPNVg-1; Thu, 02 Jan 2020 11:33:31 -0500 X-MC-Unique: f6RSfu66O-SgKyoHEVPNVg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76E6F800D55; Thu, 2 Jan 2020 16:33:27 +0000 (UTC) Received: from localhost (ovpn-117-73.ams2.redhat.com [10.36.117.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id 654815D9C9; Thu, 2 Jan 2020 16:33:23 +0000 (UTC) Date: Thu, 2 Jan 2020 16:33:21 +0000 From: Stefan Hajnoczi To: Arnd Bergmann Cc: "James E.J. Bottomley" , "Martin K. Petersen" , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Jens Axboe , Doug Gilbert , Kai =?iso-8859-1?Q?M=E4kisara?= , Alexander Viro , Dongli Zhang , Thomas Gleixner , Bart Van Assche , Hannes Reinecke , Damien Le Moal , John Garry , Martin Wilck , Heiko Carstens , "Gustavo A. R. Silva" , Ira Weiny , Iustin Pop , "Darrick J. Wong" , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3 13/22] compat_ioctl: scsi: move ioctl handling into drivers Message-ID: <20200102163321.GA129642@stefanha-x1.localdomain> References: <20200102145552.1853992-1-arnd@arndb.de> <20200102145552.1853992-14-arnd@arndb.de> MIME-Version: 1.0 In-Reply-To: <20200102145552.1853992-14-arnd@arndb.de> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 02, 2020 at 03:55:31PM +0100, Arnd Bergmann wrote: > Each driver calling scsi_ioctl() gets an equivalent compat_ioctl() > handler that implements the same commands by calling scsi_compat_ioctl(). >=20 > The scsi_cmd_ioctl() and scsi_cmd_blk_ioctl() functions are compatible > at this point, so any driver that calls those can do so for both native > and compat mode, with the argument passed through compat_ptr(). >=20 > With this, we can remove the entries from fs/compat_ioctl.c. The new > code is larger, but should be easier to maintain and keep updated with > newly added commands. >=20 > Signed-off-by: Arnd Bergmann > --- > drivers/block/virtio_blk.c | 3 + > drivers/scsi/ch.c | 9 ++- > drivers/scsi/sd.c | 50 ++++++-------- > drivers/scsi/sg.c | 44 ++++++++----- > drivers/scsi/sr.c | 57 ++++++++++++++-- > drivers/scsi/st.c | 51 ++++++++------ > fs/compat_ioctl.c | 132 +------------------------------------ > 7 files changed, 142 insertions(+), 204 deletions(-) virtio_blk.c changes: Acked-by: Stefan Hajnoczi --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl4OG1AACgkQnKSrs4Gr c8gMMQf/cVfSKOJIWw9oQSb1Jtb5IIqXpqhGWNQXQPYbbsemSZJf8GuCcr81Y/O8 thKinuXXPDyxp2YiInq3zMfIn72igNBLu6R7+vlLftbmMGpcrz6NNeZHGqCrYYpH tAbiYVKixufdkX3Z7zYKF17i1dNJNpfUojqhkjgV6v0/T/p6kaf1B7wzJa1Jxwol Et0imw7jvfyzjcKb285/9aX+zWpzupOPtjuBwZdqxW/UU6RtNq4zw0aqT3HtxKRH pU/1PuaHsZPWdag7TssEimmaRlgOkAlGr5zxjQXEeVV+Cx9rVJEr+Alnl/NB2qrY AOe6O0GvhUnX+3rYXUwaVHnsPPkEPw== =C/4U -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--