Received: by 10.213.65.68 with SMTP id h4csp318742imn; Fri, 16 Mar 2018 04:16:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELvqZ6v2s1y1J+iWNbjWQo9SAYO275oV5q8JOsqv09SjC7r9toZII7bK5aqgc2VI23s5aQ63 X-Received: by 2002:a17:902:9a4a:: with SMTP id x10-v6mr1765856plv.256.1521198987432; Fri, 16 Mar 2018 04:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521198987; cv=none; d=google.com; s=arc-20160816; b=DpATWP9j2PZ5S6E+fwMZY7+0LlM0rkJe02NT2AxtfTMMsswELtj2hp71diDhcBbxxb EOonluSblMPWO8CgQQjaim6853ixdKEzzIeBYnEU9lhQ13DlomNzyn3KJbQdoay6gDJT jL2Q/c7CA0m556jOB/FYO26LagJoljQeVZwM5OSIFJcuEjacuHugFwfTr9WtwBM1rPXc YBPo7CbKytRopEqCA1FZhH9A6JE0hIOUhL3Q+h34ovBlZCHzYDfpISAtmaPHDsPY1xR8 thxtlBs2TqxygSs3savJFzw9+ig37wqvRGukrwIyTot70HQX7F81XbR9kcS+pMCWqdVu Pkuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ATGA3+1jc8gGMuvCR5vhSWBbX3tSxYPjlkxSC71QBfs=; b=exJ02BdV1R+kiFJI1Cng8qbLGkQJV5l/oFzyHhr0ongEF7xdkDZtf7RhwDSOZ5PS6F RcIH4s+2ib4jDdMSSz1YzZ2vcvfUb8YlsUWfs2dYsp387Wrsj6Goc772CoioeEyjZhiu xPLY3rrd5F+2MUNzL4+OcVpYfKoxUKUvIpehWx8Beo6Rz+P1TNHnnnZeRT4gR2Xo/2sZ IQtQhwlPYVyXRHbS1YXedRmMnyQXlsV+2Fog8ZMKTcT5nCdKcjkfvNLTj9FGMH/tmlfW nbfTWnTgKVike2MlREhHNgIYV8ZIfOLXZaTH0RvMI+VP4EI2ECmrfvGvahJ1cdLfKt62 +WvQ== 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 m1si4951250pgn.55.2018.03.16.04.16.13; Fri, 16 Mar 2018 04:16:27 -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 S1753825AbeCPLPH (ORCPT + 99 others); Fri, 16 Mar 2018 07:15:07 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:51028 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441AbeCPLPG (ORCPT ); Fri, 16 Mar 2018 07:15:06 -0400 Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id 1AAEF200917; Fri, 16 Mar 2018 11:15:04 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 617CD20142; Fri, 16 Mar 2018 12:13:04 +0100 (CET) Date: Fri, 16 Mar 2018 12:13:04 +0100 From: Dominik Brodowski To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, luto@kernel.org, mingo@kernel.org, akpm@linux-foundation.org, arnd@arndb.de, Thomas Gleixner , Ingo Molnar , Jiri Slaby , x86@kernel.org Subject: Re: [PATCH v2 13/36] x86/ioport: add ksys_ioperm() helper; remove in-kernel calls to sys_ioperm() Message-ID: <20180316111304.GA5302@light.dominikbrodowski.net> References: <20180315190529.20943-1-linux@dominikbrodowski.net> <20180315190529.20943-14-linux@dominikbrodowski.net> <20180316084308.GB4151@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment In-Reply-To: <20180316084308.GB4151@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 01:43:08AM -0700, Christoph Hellwig wrote: > On Thu, Mar 15, 2018 at 08:05:06PM +0100, Dominik Brodowski wrote: > > Using this helper allows us to avoid the in-kernel calls to the sys_ioperm() > > syscall. > > Why not do_ioperm or kernel_ioperm as for most other syscalls? The newly introduced ksys_*() functions/helpers/wrappers take the same parameters and use the same calling conventions as the "real" syscalls, and are made available through include/linux/syscalls.h for (at least temporary) in-kernel use. Contrary to that, do_*() are mostly kept internal to one file or subsystem, and seem to be more flexible with the calling convention. Same for kernel_*(). But if you prefer the do_*() or kernel_*() namespace for the in-kernel-syscall-equivalent for fs/*, I'm fine with that, just let me know. Thanks, Dominik