From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A76FCCA480 for ; Fri, 10 Jun 2022 20:01:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347008AbiFJUBR (ORCPT ); Fri, 10 Jun 2022 16:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbiFJUBQ (ORCPT ); Fri, 10 Jun 2022 16:01:16 -0400 Received: from mx0a-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D68DC64CB for ; Fri, 10 Jun 2022 13:01:12 -0700 (PDT) Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.17.1.5/8.17.1.5) with ESMTP id 25AHfqlm023278 for ; Fri, 10 Jun 2022 13:01:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=facebook; bh=/wnmJuKQZVcMXWwCKnMHfnjWFVxRy3y7qywtFzmwz5s=; b=JUu//sj3fkZZ2jGzsb4b7anJHujMJlazo0N+S65Ha+EypIxi7rg7CGnjhwjQdQEtML0r /qRn4NdLyofj/XsKTDdcXCQlAw5fLusdeRegQSdnBbrqJElX3h5TEQV5OD7uVR9+86Se KfH6Bcz8Z/FLin2c/RUKPHnYnd6g5bKTXEw= Received: from maileast.thefacebook.com ([163.114.130.16]) by m0001303.ppops.net (PPS) with ESMTPS id 3gmak50wh3-13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 10 Jun 2022 13:01:12 -0700 Received: from twshared17349.03.ash7.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 10 Jun 2022 13:01:09 -0700 Received: by devbig007.nao1.facebook.com (Postfix, from userid 544533) id 3427E4E9D686; Fri, 10 Jun 2022 12:58:31 -0700 (PDT) From: Keith Busch To: , , CC: , Kernel Team , , , , , , Keith Busch Subject: [PATCHv6 00/11] direct-io dma alignment Date: Fri, 10 Jun 2022 12:58:19 -0700 Message-ID: <20220610195830.3574005-1-kbusch@fb.com> X-Mailer: git-send-email 2.30.2 X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: ZR-56qxptxlsAVzK-i1vsL6fsiQai6V7 X-Proofpoint-ORIG-GUID: ZR-56qxptxlsAVzK-i1vsL6fsiQai6V7 Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-10_08,2022-06-09_02,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Keith Busch The previous version is available here: https://lore.kernel.org/linux-block/Yp4qQRI5awiycml1@kbusch-mbp.dhcp.thef= acebook.com/T/#m0a93b6392038aad6144e066fb5ada2cbf316f78e=20 Changes from the previous are all trivial changes: Fixed a typo, s/bvev_/bdev_/ Updated commit messages and reviews Updated code comments Added a new comment for request_queue dma_alignement expressly documenting the consequences of setting this. All existing users of this attribute were checked to ensure they are on the correct side of those consequences. Keith Busch (11): block: fix infinite loop for invalid zone append block/bio: remove duplicate append pages code block: export dma_alignment attribute block: introduce bdev_dma_alignment helper block: add a helper function for dio alignment block/merge: count bytes instead of sectors block/bounce: count bytes instead of sectors iov: introduce iov_iter_aligned block: introduce bdev_iter_is_aligned helper block: relax direct io memory alignment iomap: add support for dma aligned direct-io Documentation/ABI/stable/sysfs-block | 9 +++ block/bio.c | 114 ++++++++++++--------------- block/blk-merge.c | 41 ++++++---- block/blk-sysfs.c | 7 ++ block/bounce.c | 13 ++- block/fops.c | 16 ++-- fs/iomap/direct-io.c | 4 +- include/linux/blkdev.h | 17 ++++ include/linux/uio.h | 2 + lib/iov_iter.c | 92 +++++++++++++++++++++ 10 files changed, 224 insertions(+), 91 deletions(-) --=20 2.30.2