From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f193.google.com ([209.85.213.193]:44181 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbeEOHEV (ORCPT ); Tue, 15 May 2018 03:04:21 -0400 MIME-Version: 1.0 In-Reply-To: References: <1526326267-22501-1-git-send-email-longman@redhat.com> <1526326267-22501-3-git-send-email-longman@redhat.com> From: Amir Goldstein Date: Tue, 15 May 2018 10:04:20 +0300 Message-ID: Subject: Re: [RFC PATCH v2 2/2] locking/percpu-rwsem: Mark rwsem as non-spinnable in percpu_rwsem_release() To: Waiman Long Cc: Ingo Molnar , Peter Zijlstra , Thomas Gleixner , linux-kernel , linux-fsdevel , Davidlohr Bueso , "Theodore Y. Ts'o" , Oleg Nesterov , Jan Kara Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 15, 2018 at 8:42 AM, Amir Goldstein wrote: > On Mon, May 14, 2018 at 10:31 PM, Waiman Long wrote: >> The percpu_rwsem_release() is called when the ownership of the embedded >> rwsem is to be transferred to another task. The new owner, however, may >> take a while to get the ownership of the lock via percpu_rwsem_acquire(). >> During that period, the rwsem is now marked as writer-owned with no >> optimistic spinning. >> > > Waiman, > > Thanks for the fix. I will test it soon. > > For this commit message I suggest that you add parts of the reproducer > found here: > https://marc.info/?l=linux-fsdevel&m=152622016219975&w=2 > fsfreeze is happy with these changes. You may add: Tested-by: Amir Goldstein Thanks, Amir.