From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:43322 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726152AbeIIJ1f (ORCPT ); Sun, 9 Sep 2018 05:27:35 -0400 Date: Sun, 9 Sep 2018 05:37:58 +0100 From: Al Viro To: Arnd Bergmann Cc: "David S. Miller" , Martin Schwidefsky , Heiko Carstens , Willem Riede , "James E.J. Bottomley" , "Martin K. Petersen" , Kai =?iso-8859-1?Q?M=E4kisara?= , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-s390@vger.kernel.org, osst-users@lists.sourceforge.net, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 11/11] compat_ioctl: move tape handling into drivers Message-ID: <20180909043746.GF19965@ZenIV.linux.org.uk> References: <20180908142837.2819693-1-arnd@arndb.de> <20180908142837.2819693-11-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180908142837.2819693-11-arnd@arndb.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sat, Sep 08, 2018 at 04:28:17PM +0200, Arnd Bergmann wrote: > MTIOCPOS and MTIOCGET are incompatible between 32-bit and 64-bit user > space, and traditionally have been translated in fs/compat_ioctl.c. > > To get rid of that translation handler, move a corresponding > implementation into each of the four drivers implementing those commands. > > The interesting part of that is now in a new linux/mtio.h header that > wraps the existing uapi/linux/mtio.h header and provides an abstraction > to let drivers handle both cases easily. Ugh... Frankly, this bool compat passed all way down looks wrong. I can live with that; the question is whether block folks will be OK with that thing...