From patchwork Thu May 30 16:30:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 10969045 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9C0A912 for ; Thu, 30 May 2019 16:30:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBC4128ACF for ; Thu, 30 May 2019 16:30:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D00E728AFF; Thu, 30 May 2019 16:30:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E06128B61 for ; Thu, 30 May 2019 16:30:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbfE3QaF (ORCPT ); Thu, 30 May 2019 12:30:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:60628 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726045AbfE3QaF (ORCPT ); Thu, 30 May 2019 12:30:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 18A53AFDB for ; Thu, 30 May 2019 16:30:04 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 18552DA85E; Thu, 30 May 2019 18:30:57 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH 0/3] Extent buffer lock cleanups Date: Thu, 30 May 2019 18:30:57 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are 3 atomics that don't need to be, all related to writes where the exclusivity is guaranteed by the lock. David Sterba (3): btrfs: switch extent_buffer blocking_writers from atomic to int btrfs: switch extent_buffer spinning_writers from atomic to int btrfs: switch extent_buffer write_locks from atomic to int fs/btrfs/extent_io.c | 6 ++--- fs/btrfs/extent_io.h | 6 ++--- fs/btrfs/locking.c | 62 +++++++++++++++++++------------------------ fs/btrfs/print-tree.c | 6 ++--- 4 files changed, 37 insertions(+), 43 deletions(-)