Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4219565imm; Tue, 11 Sep 2018 08:37:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYNWQTPoRhb/SV6KqOLbIBrYs4gzPDURs9943o1Cok0CrpUn9XB2gcjg+Zg+6qCC5QF5bNv X-Received: by 2002:a62:6f87:: with SMTP id k129-v6mr29953734pfc.26.1536680275448; Tue, 11 Sep 2018 08:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536680275; cv=none; d=google.com; s=arc-20160816; b=L+Xp0W8RP2osJ5JLHgq5tFM5JilWdb5qVe2oh+FgCve4T/+pfqyuEe+cZazwYGkYvM aTkRqTNdDknKMo6Hrs0qDAhtvBuGV0MgCh1DvqUeEUEEBxRGi32+cNIFlEqKR9ZVCp0N 79jZNzCD0VVoyWuUtu3vFSmphcfp/7MfGLeuHBTRpOIl/xxgQaS/Zqc6XwyI2dqRlRS+ DBFoAGMHBNFAye7GKlg4uue2xoxd6RwEGRsPQl+zVXrkxIi2SzgraM0WGszkdEPrRP36 qqRWO9rql5+wLCxce6APa6oks5LIfJMxd0z9EazQIVBSWgzkfZjIBTu9LHC9vbgRJa0G JO2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=KgI/SnWVjnJB8GyOZXASjRNs9jm3sq4MEmurlkF8b1Y=; b=z3iWe58EoDBrXs0Vdy20SGMsKEluJi0dEi2R/S0WIk89FKXF2HWEOnA5wOH3FItjU4 0S3ZBP35jZtW/3PdjfmShvRx8UOh3UyirwncCLzBgvULbGRkTzJ2pkQ9qc5iLOGLVO5n 2AdBopJUKgOWpZWJKTAT8yeK8QXsTin6xPjhlX6OlKv/UqDnF0iKCiLzHrjQOfnqJ5Zm 1lGNBwFp7Fy2jmFMAPJ08JzHfGQEIyaos/3WUgArVWAEizZsami1mspEYkCF+b0BH+bF hgGCK0ULj4uEMIX6HNgQqUOi5418QK41jbgNU0HPbp61GNjUhSO1ZdA1YtDZVIPj3KUq hphA== ARC-Authentication-Results: i=1; mx.google.com; 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 h20-v6si21820966pgh.573.2018.09.11.08.37.40; Tue, 11 Sep 2018 08:37:55 -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; 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 S1727802AbeIKUgy (ORCPT + 99 others); Tue, 11 Sep 2018 16:36:54 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:41327 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbeIKUgy (ORCPT ); Tue, 11 Sep 2018 16:36:54 -0400 Received: by mail-qk1-f196.google.com with SMTP id h138-v6so17013120qke.8; Tue, 11 Sep 2018 08:37:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KgI/SnWVjnJB8GyOZXASjRNs9jm3sq4MEmurlkF8b1Y=; b=YVDnJKXJ9bxG0TGWH+M4y9agd3n9NTFWkZjlZoMsSVDLH8t2Bmrkd6IAZyrtTP1ZyV yg3YMOb/CuW17++3OA6ID/AMl+VObiTUoJtEQYFbyU3etVOgmCmDNg9dAtWjdLSOQrmV Y0sF0GrlQ/t9/L9jEozQUP4oFjpdjMEMoEeglylhTrBT51Bmfl5uRc6ij8B0WN8oF/05 FK4ntlOzJAagELNJAhbZn0MAqF1UgQxFC+WWNSgdyEP5tyXG//lYE5IfMiP8/NfcHn68 o8YF2xTFfZaX9c+GpnTHwWV+xO+QgZYqn1qY6kFDxtkkn6ixwURAQKVHyrKWyxfvX/5K LIew== X-Gm-Message-State: APzg51BrkzLxK1pS5uuT47nE/qoyt/lAf8IMb3l9ac2+6YzbJ+Pk4RS7 ywlxV9s/ePqhE44HJnHRFkz5aaUBKsNjQ9l3Ns8= X-Received: by 2002:a37:7347:: with SMTP id o68-v6mr19800907qkc.291.1536680222718; Tue, 11 Sep 2018 08:37:02 -0700 (PDT) MIME-Version: 1.0 References: <20180908142837.2819693-1-arnd@arndb.de> <20180908142837.2819693-11-arnd@arndb.de> <20180909043746.GF19965@ZenIV.linux.org.uk> In-Reply-To: <20180909043746.GF19965@ZenIV.linux.org.uk> From: Arnd Bergmann Date: Tue, 11 Sep 2018 17:36:46 +0200 Message-ID: Subject: Re: [PATCH 11/11] compat_ioctl: move tape handling into drivers To: Al Viro Cc: David Miller , Martin Schwidefsky , Heiko Carstens , osst@riede.org, "James E.J. Bottomley" , "Martin K. Petersen" , Kai.Makisara@kolumbus.fi, Linux Kernel Mailing List , IDE-ML , linux-s390 , osst-users@lists.sourceforge.net, linux-scsi , Linux FS-devel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 9, 2018 at 6:38 AM Al Viro wrote: > > 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... I have tried to come up with an alternative, but couldn't really find anything that is less ugly. Since nobody else complained, I'll resend this version along with the other patches. Arnd