Received: by 10.223.164.202 with SMTP id h10csp1377866wrb; Mon, 27 Nov 2017 01:49:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMbe+THHiuQBLAQ+cZSPaf1d0YavSpDRTcNRIOF35j+qaDZaMu1+hnde7c38Zkdp04YI7mJu X-Received: by 10.98.93.92 with SMTP id r89mr36208298pfb.1.1511776169617; Mon, 27 Nov 2017 01:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511776169; cv=none; d=google.com; s=arc-20160816; b=djxfPWYYl5aS7veBZAIW/L8sxAs+dV52N972L9dEkqXlF1+pPpHbIkDbiIW4PBPh2Z oDViNC0PO65BbBCcnf/vl1/903AVvEtLS+EEVGZMdHii5qaKS2A96R7yhAS01y7vXor1 0fJuDlDL6ziy/6LwyBwUfOmOXoLKvtrRsBb1FF/BbPqEPfo/yDmXj8stRGDoycQjBjKE IbM3f7I5cBcoOX7BDm9v/3Jh2bup6g+In8cnSKIpHJKVzgQGxGUIAr/B+hh8jc+SAKP8 HaHHk5VIlbvW5R57eQB5mHH6qJheghYJDfyAy26oIobfYp8jH0+m5IdKkMxLnIevR9tU VS8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=njoCqv+oER8VeGSDPYBRubA6EAeaL3lYJglbQ7fo6qo=; b=Vq2JkYTlJ50R9fdQx5SN2abLEXtkgdoz2d9LH1NmXnCtPdiiGg3QyddD7bMb+e3Y8/ GrPqHsRPyy5dxYzLo6n9n34jDSsRGHoxaWZAFE5g4jDFO/vPj936WQuzl5H7v1eTwFX8 EnypOVbRVBZTkgszBb6yv6f4nAYQNd0X9ui2KUdgNrRGfjTZuaC2hmg8LF16eIbqLv38 EmX+IfgeeSj4E0sg9s8vCHLdEwEFPqRD0sRuLp4xT3bzygolydPhCDnfcWwuFP7EQ158 PYiR4XZAY8V5dvgbtk0lZKYZEuqdRvG5JnDDWDMyqh0/GxX3SsVyavVcKomhkAj6Z1Jt I5Sw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si9613537pfi.187.2017.11.27.01.49.18; Mon, 27 Nov 2017 01:49:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781AbdK0JrO (ORCPT + 78 others); Mon, 27 Nov 2017 04:47:14 -0500 Received: from prv3-mh.provo.novell.com ([137.65.250.26]:48387 "EHLO prv3-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbdK0JrM (ORCPT ); Mon, 27 Nov 2017 04:47:12 -0500 Received: from ghe-pc.suse.asia (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by prv3-mh.provo.novell.com with ESMTP (TLS encrypted); Mon, 27 Nov 2017 02:46:52 -0700 From: Gang He To: mfasheh@versity.com, jlbec@evilplan.org, rgoldwyn@suse.com, hch@lst.de Cc: Gang He , linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com, akpm@linux-foundation.org Subject: [PATCH 0/3] ocfs2: add nowait aio support Date: Mon, 27 Nov 2017 17:46:24 +0800 Message-Id: <1511775987-841-1-git-send-email-ghe@suse.com> X-Mailer: git-send-email 1.8.5.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As you know, VFS layer has introduced non-block aio flag IOCB_NOWAIT, which informs kernel to bail out if an AIO request will block for reasons such as file allocations, or a writeback triggered, or would block while allocating requests while performing direct I/O. Subsequent, pwritev2/preadv2 also can leverage this part kernel code. So far, ext4/xfs/btrfs have supported this feature, I'd like to add the related code for ocfs2 file system. Gang He (3): ocfs2: add ocfs2_try_rw_lock and ocfs2_try_inode_lock ocfs2: add ocfs2_overwrite_io function ocfs2: nowait aio support fs/ocfs2/dir.c | 2 +- fs/ocfs2/dlmglue.c | 42 ++++++++++++++++++++++++---- fs/ocfs2/dlmglue.h | 6 +++- fs/ocfs2/extent_map.c | 67 +++++++++++++++++++++++++++++++++++++++++++++ fs/ocfs2/extent_map.h | 3 ++ fs/ocfs2/file.c | 74 +++++++++++++++++++++++++++++++++++++------------- fs/ocfs2/mmap.c | 2 +- fs/ocfs2/ocfs2_trace.h | 10 ++++--- 8 files changed, 175 insertions(+), 31 deletions(-) -- 1.8.5.6 From 1584568571109152576@xxx Mon Nov 20 07:19:08 +0000 2017 X-GM-THRID: 1584135730404474585 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread