From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C30CA279DBA for ; Tue, 5 Aug 2025 14:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.145.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754403103; cv=none; b=i21UWfTdrxiqeZHLUVBWDlmcd8OsphQsghjF+aZa88pup6A3756OddopBEv8nKdAb4ZC6KWf3/O0q6GjEs50QsVSVrlzKzhPUZgAr+NJDlz50EYo7K4PmfoJs6OKVtZloURMGjzLJJJAGcouCWOcxndrK1FRY8zDoHYBRiByrLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754403103; c=relaxed/simple; bh=Kdc9xGN9AcSWoWHghDPfa3FV5WggL3IWn9sG9vpZcFk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Mw7SzH3pGReBnYcWTrwskmfDTxKfznsp4rnlM08brZLsA4/5X9twiAcFF9X6gv+Bfm04PUSz8OzNiJApVPrfsSgstKfdB0D9JhWGk2fo6Rqzuio4uj/ZvWUwsmnlOvFuHlyqNkzcPMDb0iEkQFv1gqrPywMYk/UO83CptwTqq7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com; spf=pass smtp.mailfrom=meta.com; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b=RDeEiszB; arc=none smtp.client-ip=67.231.145.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b="RDeEiszB" Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 575CYGGj013135 for ; Tue, 5 Aug 2025 07:11:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=s2048-2025-q2; bh=nxCXPs3DLBfSPrI4Om DSE09/Da+yCPHrQnIW6i4cpmU=; b=RDeEiszBLEs3Ehvfc4KicGGhML4FbIPXDK LOWg5iXH5rK/eAe2cyJGbfTynbFAj+th7jBJwnM+c4pQjTwU4DY2jZtBLE+0Axnf TE+APCs6zbGjqna2vYbyxB+KqVjj6pTGzu28guYQZNGChfgMnOUCt4SQnXkVE/iN iTTwzorfVJxOwNPoUdTBQB4AE6trJq787T14A3FddPnYGp/qGGDforTrp5+oiKii yugagW9621qwurYuQja0rlWYpGgGIY9MKa5hhCSAfC+c18IX6gIgcrgHv6d/Upiu gVi0o/ZmqSpQWKp4MzpmQ7DOOiEd5wvb3Z+2tLKJY6xT85DVnjMg== Received: from maileast.thefacebook.com ([163.114.135.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 48b5tacuc3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 05 Aug 2025 07:11:41 -0700 (PDT) Received: from twshared25333.08.ash9.facebook.com (2620:10d:c0a8:1b::8e35) by mail.thefacebook.com (2620:10d:c0a9:6f::8fd4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.17; Tue, 5 Aug 2025 14:11:37 +0000 Received: by devbig197.nha3.facebook.com (Postfix, from userid 544533) id 9AB254FDD4A; Tue, 5 Aug 2025 07:11:23 -0700 (PDT) From: Keith Busch To: , , CC: , , , , Keith Busch Subject: [PATCHv2 0/7] direct-io: even more flexible io vectors Date: Tue, 5 Aug 2025 07:11:16 -0700 Message-ID: <20250805141123.332298-1-kbusch@meta.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-ORIG-GUID: 4o7oQF5kP_vzRLaXhEmD6BQ7aL5NphGw X-Authority-Analysis: v=2.4 cv=RJOzH5i+ c=1 sm=1 tr=0 ts=6892111d cx=c_pps a=MfjaFnPeirRr97d5FC5oHw==:117 a=MfjaFnPeirRr97d5FC5oHw==:17 a=2OwXVqhp2XgA:10 a=VwQbUJbxAAAA:8 a=5bCI7YQ4g9DT-SdEb_oA:9 X-Proofpoint-GUID: 4o7oQF5kP_vzRLaXhEmD6BQ7aL5NphGw X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODA1MDEwNCBTYWx0ZWRfXzwnCTktLoHDu DIwYk07uIIJxsyD6hKita8od6dWluVhlOeslHKtNU1rUCSdJnkskCEm4w5mV1mNyexATL7urRT0 r021He80N4u+GbAFVyZQ68L1b4eVuWOohw5Jwostt6UsZ2o01tCcD5O7py+oVKHVDhHQNYlBYae 8xvcWjXtMvBxG3UThTJ7Rl7n+0pqiHFGXhyTKlclMn9bFbsSlITgHmYzXoCH+/vJlhUoLTOYXRl zM8eQIUkJuqqYG8HqfmiCNXJRwTVVdVldXI8Cd+eEWx/3nX2cZLBEEvEp+8875JKqB5L4MNxx0A JuzwZPP4o6BXEA+wLpaDSHgxAqoE9THajHIuL1hyAVwWh595RXqXUOLe0g1oORbGkhZFCNRqjz/ +qxP39j+MgSq5qtszcMxF/wzy/r/QKL1ZtwtSRrZeI0vrQ+oLrc1MM2kbVnTzu7Lq5fTlBYH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-05_04,2025-08-04_01,2025-03-28_01 From: Keith Busch This series removes the direct io requirement that io vector lengths align to the logical block size. Changes from v1: - Fixed the return value when attempting to align a built bio to a block size multiple. - Added reviews Keith Busch (7): block: check for valid bio while splitting block: align the bio after building it block: simplify direct io validity check iomap: simplify direct io validity check block: remove bdev_iter_is_aligned blk-integrity: use simpler alignment check iov_iter: remove iov_iter_is_aligned block/bio-integrity.c | 4 +- block/bio.c | 60 +++++++++++++++++--------- block/blk-merge.c | 5 +++ block/fops.c | 4 +- fs/iomap/direct-io.c | 3 +- include/linux/blkdev.h | 7 ---- include/linux/uio.h | 2 - lib/iov_iter.c | 95 ------------------------------------------ 8 files changed, 50 insertions(+), 130 deletions(-) --=20 2.47.3