Message ID | 20191217221708.3730997-17-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp6383488ile; Tue, 17 Dec 2019 14:19:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzvJwlvy91Ak+xduKSlN/yEd4nn60BGwsyKq6PFNs1Ua9l9mPcwItQgN6r+KzXF6zrOqYub X-Received: by 2002:a9d:53c2:: with SMTP id i2mr38100764oth.43.1576621165763; Tue, 17 Dec 2019 14:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576621165; cv=none; d=google.com; s=arc-20160816; b=rheqiCAMXc9fkV0MOG3cFAtiHCAsTR/ST+lUfuWXNgfC1fYv/4HI0jeqnfLlzVEDUw LeYtj6EWTaS37mtkVwaB4bWUfjDxbN+RdBj28DkseunLbTj2MKeEkNv4rF5W3JzMLaTA olAcMzmvBfp4mrPbQ4vzPCGV2ncS5feYGiK4qz97hOlFLV0pb0LzNEZb051W7YveNJRi 868egUP43peQN8gz5oWqLQOBYsqyaJNhclDLp/R+QJKOF2Yz7fUmJHua7I552KOhpV7b +J06wGO5qEkQywa+sR7Kavn7jVJuDInqtKvNj/7djiNqE/fbnFEqkLAz9ga0vXSrLqoQ MhIA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1AVkuICYuUJ9D3eRwQf8/7qao6yYJFs+YeK6ywV2mhg=; b=hvgpOLshT1Ef65a0YEaNfNckXObZfUqTGrDWT5mgTQqEoHMASHNrQQb+25v0CyrSU+ +FA4y9jfsq6QITj68071O87XmU5MHGMESxQ3x7eqbp+gFUKFW4yZar18Q9sW4l69FUbT to+mx9j20mC9Osj6EftKkPCk63Z9JRE6OzCKZbHDMA7uA+m/1nGtEGnvkqsASSED6Omr 2NsyceHbTQPI/SHnQzRJ9k9JYYFh3KcLo4bICX1j+KyM990sozU13q065ZB0/xLL65A3 tH2JwV29JU8NQ8TPHw9zgYl6j5eSxO5wKUiSZl1Gw3wfNMTvV4nF/kqC2GwsRaiFEFjG O1rg== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si11972485otk.170.2019.12.17.14.19.25; Tue, 17 Dec 2019 14:19:25 -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; 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 S1727230AbfLQWTY (ORCPT <rfc822;christophe.lyon@linaro.org> + 27 others); Tue, 17 Dec 2019 17:19:24 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:34075 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727165AbfLQWTV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Dec 2019 17:19:21 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1M8QJq-1icvIw1gYq-004PCA; Tue, 17 Dec 2019 23:17:30 +0100 From: Arnd Bergmann <arnd@arndb.de> To: Jens Axboe <axboe@kernel.dk>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Christoph Hellwig <hch@lst.de>, Ben Hutchings <ben.hutchings@codethink.co.uk>, linux-doc@vger.kernel.org, corbet@lwn.net, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> Subject: [PATCH v2 16/27] compat_ioctl: bsg: add handler Date: Tue, 17 Dec 2019 23:16:57 +0100 Message-Id: <20191217221708.3730997-17-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191217221708.3730997-1-arnd@arndb.de> References: <20191217221708.3730997-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:CcW0OER95wDXq0YetFdqoTdTEnAWcPISLF3QDQtri9hrxSFvPXG fBdpTLjhv0iKK2rBmn4jyDnjys1/pVoz09rAJLkDNE6wj+fddgYodj6iKfELZj3+/PdHrcO tw2Gy4JzU2ZMgdpd+jxtzid1wBePiv+WmdPlrT6nYzzMvTt7km/aGxMnd97UOOoejnfCoWW 3LytDdHjU3oriRUGkNmhg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:Yj2mPlnFp94=:fKjchY6xasw3iPgAiTTlST y2fJLfy8whAQA/X2JktR72kckWBi+i+GEgdIL1mIGmyUXnZeEfx3jWleiclTjPFTEBCBFDJG1 LoMm7vit2smCIWZGk0nKs7UkMSSPS6mvR65hs5LpSANX+RaU3V7ZeKeA2idWlUnrHmUdvvibW +LQWNNSDTYtRkk/PNlXcEA6YkgeLx1SHpOD+VHOB5cmlFFpYGyeM3RLnFFo619lx1X5D4ussB uqqdu+Nw6bQm+WKgAQewdSLPTnLm4UDHvOeL4FglMwkbnotBzQ5uEclxuKlWcJqgGkCI3Wlsa YlrYI4rnIsbPU1T3/dxGG+MXkafh0q8q/Q3x/aJPHzic/vq6ILaZ5oqEB3Jpjm7qZlXfvjiLC KRicjRF7eptVnI8dEu+/dRlm2wIKp5QbMekshiCZ6dMt5Hu70cie3YtrGyG/l3nsFgAOcgEQD 3I9TUzjmYpQ6XfZYgGk1k5Tyv6UhDeccLVyIDIGneWMxwg/8JRCDHiU3nVKTTX2x9JlepYfYA pn44I3n4hpd2M7d/Mozo5exhR/zqgs/OqS5dv2B5egGWjpFEm0cSNddo4KOjqs1VMhFN9IWci rJnQWp8uhzgSp7R2NGiD+cpQpiJDTzFkNYFo+mUeQdwyqECBf/UxeyIC6fgkRO8AbH1jCnRuq Bdk4xAS8wttqqA5ORCTI+u4uCS6TvUopNrl7ez2lDq2Ytoqn9wweQHdfiSMwxQaroKFRt2JO2 sz7QiNH9ux8S3D0ZAMAZXmZ7xZPAQNAqU4s4Spd0Du7vRE8GYvEvbtl0FQCX8LSuIZukuOnaC eAGqMMEkqmSN+sY8xwVupa0n2qbWj21AbUF4pNA9Bw1h4CY3Utti2W04Du/wCUTADSvQkO5Jz Eo+g0fwG0WoTSGpv4V5w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
block, scsi: final compat_ioctl cleanup
|
expand
|
diff --git a/block/bsg.c b/block/bsg.c index 833c44b3d458..d7bae94b64d9 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -382,6 +382,7 @@ static const struct file_operations bsg_fops = { .open = bsg_open, .release = bsg_release, .unlocked_ioctl = bsg_ioctl, + .compat_ioctl = compat_ptr_ioctl, .owner = THIS_MODULE, .llseek = default_llseek, };
bsg_ioctl() calls into scsi_cmd_ioctl() for a couple of generic commands and relies on fs/compat_ioctl.c to handle it correctly in compat mode. Adding a private compat_ioctl() handler avoids that round-trip and lets us get rid of the generic emulation once this is done. Note that bsg implements an SG_IO command that is different from the other drivers and does not need emulation. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- block/bsg.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.0