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=-3.8 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 920FAC07E95 for ; Mon, 19 Jul 2021 20:47:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 713976112D for ; Mon, 19 Jul 2021 20:47:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358625AbhGST65 (ORCPT ); Mon, 19 Jul 2021 15:58:57 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:50868 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349392AbhGSTiy (ORCPT ); Mon, 19 Jul 2021 15:38:54 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5Zee-0027j9-PG; Mon, 19 Jul 2021 20:14:20 +0000 Date: Mon, 19 Jul 2021 20:14:20 +0000 From: Al Viro To: Andreas Gruenbacher Cc: Linus Torvalds , Jan Kara , Matthew Wilcox , Christoph Hellwig , cluster-devel@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com Subject: Re: [PATCH v2 0/6] gfs2: Fix mmap + page fault deadlocks Message-ID: References: <20210718223932.2703330-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210718223932.2703330-1-agruenba@redhat.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 12:39:26AM +0200, Andreas Gruenbacher wrote: > Hi Linus et al., > > here's an update to the gfs2 mmap + page faults fix that implements > Linus's suggestion of disabling page faults while we're holding the > inode glock. > > This passes fstests except for test generic/095, which fails due to an > independent bug in the iov_iter code. I'm currently trying to get > initial feedback from Al and Christoph on that. > > Any feedback would be welcome. What tree is that against? Because in mainline your #5 sure as hell won't apply... There uio.h has enum iter_type { /* iter types */ ITER_IOVEC, ITER_KVEC, ITER_BVEC, ITER_PIPE, ITER_XARRAY, ITER_DISCARD, }; and your series assumes enum iter_type { /* iter types */ ITER_IOVEC = 4, ITER_KVEC = 8, ITER_BVEC = 16, ITER_PIPE = 32, ITER_DISCARD = 64, }; What had that been tested with?