From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B61EBC433E4 for ; Mon, 20 Jul 2020 18:17:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6A5022B4E for ; Mon, 20 Jul 2020 18:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729342AbgGTSRM (ORCPT ); Mon, 20 Jul 2020 14:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728703AbgGTSRM (ORCPT ); Mon, 20 Jul 2020 14:17:12 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D670C061794; Mon, 20 Jul 2020 11:17:12 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxaLa-00GiPf-MH; Mon, 20 Jul 2020 18:17:06 +0000 Date: Mon, 20 Jul 2020 19:17:06 +0100 From: Al Viro To: Christoph Hellwig Cc: Linus Torvalds , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 06/24] fs: add a kern_chdir helper Message-ID: <20200720181706.GR2786714@ZenIV.linux.org.uk> References: <20200720155902.181712-1-hch@lst.de> <20200720155902.181712-7-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720155902.181712-7-hch@lst.de> Sender: linux-api-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On Mon, Jul 20, 2020 at 05:58:44PM +0200, Christoph Hellwig wrote: > Add a simple helper for a chdir with a kernelspace name and use it in the > early init code instead of relying on the implicit set_fs(KERNEL_DS) > there. Remove the now unused ksys_chdir. FWIW, my problem with that is that you are making it first-class primitive. And I don't see any valid use for it - existing one is really "we have a userland process that would be making syscalls if we only could have it done right; the only reason we can't is that the infrastructure to build the binary would be hell to maintain in the tree". It's *NOT* "kernel code that has a valid reason to get the syscall functionality".