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=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 0FE99C433DF for ; Tue, 7 Jul 2020 20:24:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E1CFD206BE for ; Tue, 7 Jul 2020 20:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594153461; bh=TbdwxGLQlZ0jGP98TtLe5hQDTqJJXLwEhn66YVw1rc8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=VGjdBJHy1ADL67rFIlKL1+KArcCyKhJoXDvisuKm9e0tx4K6koIM8SU0nFw8YO7AD NxEJMMDxhMwIcpyvVPVCOrB0oVD7j4oGT3lDn84HIu5VS05JOiOpbxuG9V8wpw1ITJ 9CJXV7i76obury6bmXuWTZpv9fHr0v8QBskwFBwg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728303AbgGGUYV (ORCPT ); Tue, 7 Jul 2020 16:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727895AbgGGUYV (ORCPT ); Tue, 7 Jul 2020 16:24:21 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9FEDC061755 for ; Tue, 7 Jul 2020 13:24:20 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id q7so38276355ljm.1 for ; Tue, 07 Jul 2020 13:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6XqDOhPELSzMgZFeHVQzNLAfVHgv7dPOLnk5RnzM4P4=; b=LY4FvMZzILikh15a8T4+gZcC0iBGtJIHSCWGKPXPFccoqV7BkYRThzmBYw+Gn++IR0 KDHlg9I55kRP3bn6OA1SY3gKt8aJQqmugf/5wZuoWhDeEEHYDWHOD/dvGo2Wt9x4Qui/ iilyA/ngA43BVbE72OqjP1/UYdQ3shqLk3Ktc= 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=6XqDOhPELSzMgZFeHVQzNLAfVHgv7dPOLnk5RnzM4P4=; b=cVC3VZ3BCG0yg0vWxO6F4WueRkwuoZFANkdpBfAVlU6bwRkxuFni+HqV8TNm8Fgsbi JJjKkHhFRTglIlYwbUNzy9z1INozxTUAIiqzhsth2nDQy3hgofmrU0upSFnPC4sY0meZ f7OSNrrOnp2p4bQCc9XiiC3aFeo6d4t+fU5RdcfdjvJ2U/4nIwO6/SOxAHloR9ag2aQ9 a++vM6yR+C7o5Lkv0zNDlnonbUZ8ox30dMNFLsF4doAQQ/zeSrQtF3a1EUZvp7HgSzmp 560lMKrXRTFRkMpDfu6/HpxGASC2FvJh5TR6LAAmd54Yj+XP5ZYiNnj0A5qZPHbzsdoI eAWQ== X-Gm-Message-State: AOAM532PeU81ZCP/oWaZ2ETgkDFV+FTlF64THa0vcSpqfv+4/KU5G/HJ x+aTcm2NYRUfywOcabi45ZqkW8iWyqc= X-Google-Smtp-Source: ABdhPJz4E6h8PizUBAYp7dQgYN6ER5+T3IwEjWu+CEuG5RGvcI3P7SS1pNs+0mlHTQtCDoteeWpAig== X-Received: by 2002:a2e:80cc:: with SMTP id r12mr25760813ljg.344.1594153458945; Tue, 07 Jul 2020 13:24:18 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id m10sm431107lji.72.2020.07.07.13.24.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jul 2020 13:24:18 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id s9so51480572ljm.11 for ; Tue, 07 Jul 2020 13:24:17 -0700 (PDT) X-Received: by 2002:a2e:9b42:: with SMTP id o2mr30598178ljj.102.1594153457543; Tue, 07 Jul 2020 13:24:17 -0700 (PDT) MIME-Version: 1.0 References: <20200707174801.4162712-1-hch@lst.de> In-Reply-To: <20200707174801.4162712-1-hch@lst.de> From: Linus Torvalds Date: Tue, 7 Jul 2020 13:24:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: stop using ->read and ->write for kernel access v3 To: Christoph Hellwig Cc: Al Viro , Stephen Rothwell , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin , Linux Kernel Mailing List , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Jul 7, 2020 at 10:48 AM Christoph Hellwig wrote: > > Hi Al and Linus (and Stephen, see below), > > as part of removing set_fs entirely (for which I have a working > prototype), we need to stop calling ->read and ->write with kernel > pointers under set_fs. I'd be willing to pick up patches 1-6 as trivial and obvious cleanups right now, if you sent those to me as a pull request. That would at least focus the remaining series a bit on the actual changes.. Linus