From patchwork Thu Sep 24 16:39:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goldwyn Rodrigues X-Patchwork-Id: 11797927 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C88159D for ; Thu, 24 Sep 2020 16:39:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65AA223741 for ; Thu, 24 Sep 2020 16:39:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728426AbgIXQji (ORCPT ); Thu, 24 Sep 2020 12:39:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:35796 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgIXQji (ORCPT ); Thu, 24 Sep 2020 12:39:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7F965ABD1; Thu, 24 Sep 2020 16:39:36 +0000 (UTC) From: Goldwyn Rodrigues To: linux-fsdevel@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, david@fromorbit.com, hch@lst.de, johannes.thumshirn@wdc.com, dsterba@suse.com, darrick.wong@oracle.com, josef@toxicpanda.com Subject: [PATCH 0/14 v3] BTRFS DIO inode locking/D_SYNC fix Date: Thu, 24 Sep 2020 11:39:07 -0500 Message-Id: <20200924163922.2547-1-rgoldwyn@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This series attempts to arrange inode locking and unlocking to be more aligned to ext4 and xfs handling of things, and makes it simpler in logic. The main goal is to have shared inode lock for direct reads and direct writes within EOF to make sure we do not race with truncate. I have merged two series here: (1) Using inode_lock_shared for backing_dev_info - Corrected ret from __iomap_dio_rw() - Removed unused err in btrfs_file_write_iter() --- Goldwyn