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=-5.8 required=3.0 tests=BAYES_00,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 399B7C48BCF for ; Sat, 12 Jun 2021 23:18:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 05B73610E9 for ; Sat, 12 Jun 2021 23:18:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbhFLXUD (ORCPT ); Sat, 12 Jun 2021 19:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbhFLXUC (ORCPT ); Sat, 12 Jun 2021 19:20:02 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C1BC061574 for ; Sat, 12 Jun 2021 16:17:48 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id v22so14453859lfa.3 for ; Sat, 12 Jun 2021 16:17:48 -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=qCXFlg8KkH0YKYOZIBIMSHdr8CfV4JWzrS9dLDGVBxo=; b=dLDO/VGC6YswxkFdvFcUk5ES7JnBBc3Mj8q+86vqS87AjRGXro0lsFDiO0luLahj7J BqAA9KMbZ39boWQ+0udyuI9TUKrKRnVEWs/kYVN7LBKrURQQOVEof149ZJvcwJgi1qV6 wExPOZYH175hphRL2jfOO6+D17FTOnnzO7610= 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=qCXFlg8KkH0YKYOZIBIMSHdr8CfV4JWzrS9dLDGVBxo=; b=KbonDsBDZUWAYXETHZ20+XXwfL+bezPBAe3tiCiSo/HdUHfa8tnZUuYTdfjUgk6AJ/ YrQLlUIYz51fm1xVQRf1c48+1vV3AYM/JJc3heoxdd60cDO3X/NU9DwfKzGSrDpR4PYz 2S75KFNHOWm3qwn9l100n5DfOjX9NpJyhxN8HfjZWQA900RHUVCecJ4MU8wF4Nun96Vm RtLnAYnAl2vQgwgiwZkMAWMhn8KqEVEFFQbrwp8VNVMFMjhvzx+w83n9m1i91eTAQ/LU zFTlzuZ3k8hjGKux326mPxGMo0m1tflJQLUuM9s/yQa48FUaVaZBWdqcGebgDuRflfJj SYhw== X-Gm-Message-State: AOAM530BNKKtpl5u3JcZTzOPz0TOYPJj5cxZBO0ILyImsEvt+AUIOga7 s7wximtzATE3upZDoghgYUWYNER/DauOTY+txfQ= X-Google-Smtp-Source: ABdhPJwjJscsBVt6cVOCUJARxAeMRSNvHptZ1YxzLEzisyu7oqZUvIGU6eiLFSUoK8+HHDW0h68Hfw== X-Received: by 2002:ac2:43b2:: with SMTP id t18mr6912357lfl.133.1623539866830; Sat, 12 Jun 2021 16:17:46 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id r15sm1009305lfr.245.2021.06.12.16.17.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Jun 2021 16:17:46 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id bp38so14506792lfb.0 for ; Sat, 12 Jun 2021 16:17:46 -0700 (PDT) X-Received: by 2002:a05:6512:3f82:: with SMTP id x2mr6860791lfa.421.1623539865998; Sat, 12 Jun 2021 16:17:45 -0700 (PDT) MIME-Version: 1.0 References: <20210531170123.243771-1-agruenba@redhat.com> <20210531170123.243771-6-agruenba@redhat.com> In-Reply-To: From: Linus Torvalds Date: Sat, 12 Jun 2021 16:17:30 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 5/9] iov_iter: Add iov_iter_fault_in_writeable() To: Al Viro Cc: Andreas Gruenbacher , cluster-devel , Linux Kernel Mailing List , Jan Kara , Matthew Wilcox Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 12, 2021 at 2:47 PM Al Viro wrote: > > O_DIRECT case is a PITA - there we use GUP and there's no way > to tell GUP that in the current situation we do *NOT* want to hit > ->fault()/->page_mkwrite()/etc. pagefault_disable() won't be even > noticed there... Well, we could change that. And we do have get_user_pages_fast_only() these days. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Date: Sat, 12 Jun 2021 16:17:30 -0700 Subject: [Cluster-devel] [RFC 5/9] iov_iter: Add iov_iter_fault_in_writeable() In-Reply-To: References: <20210531170123.243771-1-agruenba@redhat.com> <20210531170123.243771-6-agruenba@redhat.com> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sat, Jun 12, 2021 at 2:47 PM Al Viro wrote: > > O_DIRECT case is a PITA - there we use GUP and there's no way > to tell GUP that in the current situation we do *NOT* want to hit > ->fault()/->page_mkwrite()/etc. pagefault_disable() won't be even > noticed there... Well, we could change that. And we do have get_user_pages_fast_only() these days. Linus