From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 718A02E1730 for ; Wed, 19 Nov 2025 23:59:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763596748; cv=none; b=tglMDzWc/ztnMVEUu2TIs9FBTeCHFCLZ/28VyaHF8sK5p0joPFT0h6DOPrI2ktK0Qm4iVFyZM8x0b+As+8mHj4foesn/ehEH1lp+xeaFcKagPwf6mj1l8Ky/xuWR1DNbJef019rDSO80XavgCym17xEfgLgcvf2M174H9/aO+PM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763596748; c=relaxed/simple; bh=CHbGJo+gsN1mBKwtyyermcocCGGB6nJz9E/izE6AQ8s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OqS9MhQglQkKuYdg6JNr6463bV1H6KCCKw/cXsLMdHFAVHUHhALDIszLDEHfqNF71ppyVnQQWEXisuZrCpXr6uFdAV6MncnJwzk1uoLRM8HByq61AHFceXMu7O4JFFZ5DL1/T4RRQKRliLEPeb9IgRKnJJEtDXRBxVL7TMSij0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uMyCXTEm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uMyCXTEm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6464C116B1; Wed, 19 Nov 2025 23:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763596748; bh=CHbGJo+gsN1mBKwtyyermcocCGGB6nJz9E/izE6AQ8s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uMyCXTEmJ46yBBzGk9e9w0eLK/AUO1PNvQdVnSrtbNGk5eoF0Rsb2MkUP7Y2S8YG6 97Z9fgnKuo8Kmy0Pt+R/4LRLE4aD1S6V7VtPUiBBcndG49NOIj/IOJV7JS5LWEM3vN /fPes9vyE95fqu5drlOufwz3aJA+mVhIxkMb7OodOg7Z5qvw4WoR0sVCl1UyPvUnr0 h6G+NnIQjg7+htXLS/wt2wvLhcH9nW9gOhlv2N/X1mU1ygmnlKxdxP6WJ7zJpHjOal onbjK5c1SaEF3LJo5xkDycWoiN5KLXpGsznXoCJFMaBZ+Ko3nCAmwMjsWx5Q9WNMSL AvjTJI+Gjw6yQ== Date: Wed, 19 Nov 2025 16:59:06 -0700 From: Keith Busch To: Chaitanya Kulkarni Cc: Keith Busch , "linux-block@vger.kernel.org" , "shinichiro.kawasaki@wdc.com" Subject: Re: [PATCHv2 1/2] blktests: test direct io offsets Message-ID: References: <20251119195449.2922332-1-kbusch@meta.com> <20251119195449.2922332-2-kbusch@meta.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Nov 19, 2025 at 11:48:47PM +0000, Chaitanya Kulkarni wrote: > On 11/19/25 11:54, Keith Busch wrote: > > + ret = pwritev(test_fd, iov, vecs, 0); > > + if (ret < 0) > > + err(errno, "%s: failed to read buf", __func__); > > + > > > is pwritev correct above or it should be preadv () ? Good eye, it should have been preadv. This part is currently unreachable though, as it requires byte-aligned dma limits and the kernel doesn't report such a value. But if this were to run, the test would have falsely declared data corruption.