Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1618300pxj; Sat, 12 Jun 2021 14:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycK2Bcr6cZdeus78dfzHGuaugMjBIw2BOz5w90xkEOnU+xMzU6ydrqnu6SpZ4AeqGm5+CA X-Received: by 2002:aa7:ce96:: with SMTP id y22mr10359806edv.210.1623533814958; Sat, 12 Jun 2021 14:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623533814; cv=none; d=google.com; s=arc-20160816; b=ospt0bmTsxE7sEgtrMPK0MajzRyY8KJzVZrWxzrih7UfSAtkOaZfAEPHsjWDM9meKB D2tamt2zR0MtL9rxcFvw1wl6OAmtSWc771yAWiEqPfq3rWEzDFnXa5EW8NFbgntyRgHn k5zJCk82HnPe7S42aRvHjKMw7mYb4bQgINk9e3FBv2Z0Ey0NQ55NW0LjoUwRZT7M8AEu 8H4C5H7qNdtv5tCy2LWrXrhxzySytdOu22qFxsWHZbwas+8wqWCZnvvsmRlRprE9Y3By URSBRCFrSpl1r3/E0iZuGJdp7PmYFT8l8Mzm77Bsk81+rmxdjrkBWGWQpOzF1x9nC+Ze 0Hvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=aZ4S6D6Enk+WyKWmhDQUKGDb7OlpbqBWkbONFPOPr9g=; b=qwsXVtvbczCbqlI8wrX5CJDBDcpGzhd7dny0F0Jwvn/DqZwHXnbraonweIB4oPJeSN jBHqSxmHR+U4Vth91Ijuxz106cbTgwvE6oBEz3FkiMVMBL0GBbLJ3QEGsF+5EsRnJykw zFvl8BX7TOBxp89pIvf3282/rixwLzsSZH3P3qYqVRnq2vjaYn6LKdQQht78ObBDV7Yy iLAW+S15xk5hkdhlrJHQHv1U7pLp4HUS8HU4Bf2wh9em5OHnQR5VLIVvYvrTeOlXHaqs Tvton5vPMDnk8q6fcuWyzTjqQmbhx0jMpxsE4fEBXyHVYtdbfH+PTyebV7Q6MajkPuQI qTnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c30si7836569ejj.574.2021.06.12.14.36.32; Sat, 12 Jun 2021 14:36:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbhFLVhR (ORCPT + 99 others); Sat, 12 Jun 2021 17:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbhFLVhR (ORCPT ); Sat, 12 Jun 2021 17:37:17 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 455F1C061574 for ; Sat, 12 Jun 2021 14:35:17 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsBHd-007RTu-CV; Sat, 12 Jun 2021 21:35:13 +0000 Date: Sat, 12 Jun 2021 21:35:13 +0000 From: Al Viro To: Andreas Gruenbacher Cc: Linus Torvalds , cluster-devel , Linux Kernel Mailing List , Jan Kara , Matthew Wilcox Subject: Re: [RFC 4/9] gfs2: Fix mmap + page fault deadlocks (part 1) Message-ID: References: <20210531170123.243771-1-agruenba@redhat.com> <20210531170123.243771-5-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 12, 2021 at 09:05:40PM +0000, Al Viro wrote: > Is the above an accurate description of the mainline situation there? > In particular, normal read doesn't seem to bother with locks at all. > What exactly are those cluster locks for in O_DIRECT read? BTW, assuming the lack of contention, how costly is dropping/regaining such cluster lock?