Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5193715imu; Tue, 13 Nov 2018 02:43:57 -0800 (PST) X-Google-Smtp-Source: AJdET5eLK//3RcXDA/q8QS5z7NxKQZxlA8N3mbYXHzAhgyeJIKlm7vbweDZeQ3zkMr48Od2a7AST X-Received: by 2002:a62:2741:: with SMTP id n62-v6mr4678890pfn.138.1542105837036; Tue, 13 Nov 2018 02:43:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542105837; cv=none; d=google.com; s=arc-20160816; b=HVXHszAP5wCdXY/XuplZDmDkPu6+4LiIRwNAm5AtS00kKo/j6wPd8nuPxFA9MaBxnC YViN8Uqc/d8EEceqg2ytQ0jhFCiO56ENR4Nof086t5tnL3ITcuTTRW+5a/T1jldt0Dop yYIxocWltU2oNKk5Z26XnuXqNA/uCzDGam8kCTvxmGRCfBWorH5lGJGj5m9BTwMBzpJ4 3NJoCALAK6nJNrpOC/gCgjGiwZvoHUefiRHogayJnDd1Z5Hy4Flp60EAh9o9qxeur7y5 OVaCzYjmaGbW3PRAvdHiqW0vfm952oEcfapY8GnvDoyp57P7gFbNyN3/piJ9CU2J4f5S Bg5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=7Y47uSeHodL8AWezXpNmPNvPkYk9eeVyb60XV1fRJxo=; b=Vd5jUPcPA+XP+2KDRemNbxOvwywEXpywzAukbaAiayL1P7NUkWRBbExLjWXAJDbQZV qTsUSWKTyNn5Q6DdNifAh2DC6swUrmrMuBL/rb9G1MJ0/uq4DdnEoZKFdkJlSpFY2vMF Ux+d4hI6eYos7vMsU5+ksQhhXyNfK6VQQh1u15iJQCUC6uVLIX75NEEPMcThisrCZASs WVkLAfPQ7rbl6hrGAzv4rlgsFqNgliBKM9A1HwTVJK+Fdog/pLjnPMuEgOOSeaUF/V27 2UUagnnkj/Z7IbGBA6QYF94Al5XEtv5Se3Prn21fsWrum+50dZEtyzC5lt3eVIuqLkXk 3t6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NcKJI7c0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33-v6si13696540pld.155.2018.11.13.02.43.41; Tue, 13 Nov 2018 02:43:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NcKJI7c0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732250AbeKMUkx (ORCPT + 99 others); Tue, 13 Nov 2018 15:40:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:42718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732104AbeKMUkx (ORCPT ); Tue, 13 Nov 2018 15:40:53 -0500 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9969B22419; Tue, 13 Nov 2018 10:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542105801; bh=syzH+GoLCOO7VABA4SDXGqQQBuf8EmxRqfaEMhz1CHs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=NcKJI7c0Jm9PHHQ2o/a1/Xm7t2m6a1R+OMEoxu+zAT6Dt9rk5YvpIHV3X8glrNugC G0U3oP2BIccuEQZpKswzkRmTatwp8XfS7yaOY5RYoe99dKuQdDhBQ4EG1SqqPEmIzR NUDKpDYu4WVo4HRiu1Vjwm4j+ms8p50Jy520iG18= Message-ID: Subject: Re: [PATCH 00/12 v5] locks: avoid thundering-herd wake-ups From: Jeff Layton To: NeilBrown , Alexander Viro Cc: "J. Bruce Fields" , Martin Wilck , linux-fsdevel@vger.kernel.org, Frank Filz , linux-kernel@vger.kernel.org Date: Tue, 13 Nov 2018 05:43:19 -0500 In-Reply-To: <154198490921.14364.13726904731989686092.stgit@noble> References: <154198490921.14364.13726904731989686092.stgit@noble> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-11-12 at 12:14 +1100, NeilBrown wrote: > Changes: > - field names improved as requested by Bruce. > "fl_blocked_requests" is a list of blocked requests, > linked through fl_block_member > - the introductory text has been moved to a commit comment > as suggested by Bruce > - documentation added to locks.c as suggested by Bruce - I made > a few little changes > - flock_make_lock() now properly initialized a lock - using > the code from Jeff > - code actually compiles for ocfs2 and gfs2 > > Thanks, > NeilBrown > > > --- > > NeilBrown (12): > fs/locks: rename some lists and pointers. > fs/locks: split out __locks_wake_up_blocks(). > NFS: use locks_copy_lock() to copy locks. > gfs2: properly initial file_lock used for unlock. > ocfs2: properly initial file_lock used for unlock. > locks: use properly initialized file_lock when unlocking. > fs/locks: allow a lock request to block other requests. > fs/locks: always delete_block after waiting. > fs/locks: change all *_conflict() functions to return bool. > fs/locks: create a tree of dependent requests. > locks: merge posix_unblock_lock() and locks_delete_block() > VFS: locks: remove unnecessary white space. > > > fs/cifs/file.c | 4 > fs/gfs2/file.c | 10 + > fs/lockd/svclock.c | 2 > fs/locks.c | 319 ++++++++++++++++++++++++--------------- > fs/nfs/nfs4proc.c | 6 - > fs/nfsd/nfs4state.c | 6 - > fs/ocfs2/locks.c | 10 + > include/linux/fs.h | 13 +- > include/trace/events/filelock.h | 16 +- > 9 files changed, 230 insertions(+), 156 deletions(-) > > -- > Signature > Thanks Neil, I'll pull this into locks-next. I also went ahead and fixed up the comment that Bruce pointed out. -- Jeff Layton