Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp537300ybv; Fri, 7 Feb 2020 04:08:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzpYJ6RtkC6929SCKz5iGWX56SQ8RhrSeAtVLt587KFZN/oy3oEm52qvsRDD1P3hptkOWIK X-Received: by 2002:a54:410e:: with SMTP id l14mr1820127oic.42.1581077324175; Fri, 07 Feb 2020 04:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581077324; cv=none; d=google.com; s=arc-20160816; b=FKvRK8clhgjFUTFA8AXQF2MbdVc0RLXr68H15A/cht5xqFAQggQimncqKgnr2zv4Bn ksi2/EKP9IxM8rBGnUrSzQfZvooBMRxJer2FdZv7LBdCUZbVTFSgM7/YoEQAMT6QUHIP iJD9AZIroKVChWBMHHMN296gSSVUhFKQ5+XS37b/Is2E8G4TGDUUnCTWG+w5Nxyw7nyw Y6Zvd0USoCusIMTJtiMn+xqZtM9pfOgSs6qGpFp8OiKFyEtIEPKVWK1EN3EDXD/4Ib4p vJZ7fdLUAjO1+FxC3OC+fx0CEg/MU6URRKT+DUsRUG8ocjFa4avgbPi9oO1qBtytegcm B4qg== 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; bh=ffl9fVgszk2V389X7Zh4aN9FzBGBxRhrOhSrriGlJCU=; b=kxr5mSIUTPdcARfEazkgoUa/Lyv4nbVtKG4xVc0d60erWlP7/tO7GEUFMuBHZq1Wo0 gQ/5mf/2e2GwKuWTPpxqlq9kbdjDbPeKUouvC2Pr/WiCbBnmN85AZ6ZYBHP4tgg3kleb bRtQwK9j5ueINmkUA1+qc9cFtfDYtBUinPIpIsPejKNB7JGAjXLuzW+XJC5IOBdeMb8i f/F8EnQObbQYupwqR/TrBQaHok2G02IEb4nIsMFVfX8Dwe+vP4dYdbf3V6kQhmkWpMJS Jx2P8M/n6kGd/CgZWkq4DS+QQkMhx+CZSbgzOHwRj98xN/FGNiuJNoqCb2FBBQqzokc1 CFXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si3452001oij.136.2020.02.07.04.08.24; Fri, 07 Feb 2020 04:08:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726901AbgBGMIU (ORCPT + 99 others); Fri, 7 Feb 2020 07:08:20 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:57469 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbgBGMIU (ORCPT ); Fri, 7 Feb 2020 07:08:20 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04396;MF=xiaoguang.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0TpMBOET_1581077279; Received: from localhost(mailfrom:xiaoguang.wang@linux.alibaba.com fp:SMTPD_---0TpMBOET_1581077279) by smtp.aliyun-inc.com(127.0.0.1); Fri, 07 Feb 2020 20:08:13 +0800 From: Xiaoguang Wang To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, jack@suse.cz, Xiaoguang Wang Subject: [PATCH] ext4: start to support iopoll method Date: Fri, 7 Feb 2020 20:07:58 +0800 Message-Id: <20200207120758.2411-1-xiaoguang.wang@linux.alibaba.com> X-Mailer: git-send-email 2.17.2 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Since commit "b1b4705d54ab ext4: introduce direct I/O read using iomap infrastructure", we can easily make ext4 support iopoll method, just use iomap_dio_iopoll(). Signed-off-by: Xiaoguang Wang --- fs/ext4/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 5f225881176b..0d624250a62b 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -872,6 +872,7 @@ const struct file_operations ext4_file_operations = { .llseek = ext4_llseek, .read_iter = ext4_file_read_iter, .write_iter = ext4_file_write_iter, + .iopoll = iomap_dio_iopoll, .unlocked_ioctl = ext4_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = ext4_compat_ioctl, -- 2.17.2