Re: [dm-devel] [PATCH 0/3] fix direct io errors on dm-crypt

2022-11-04 Thread Dmitrii Tcvetkov
On Thu, 3 Nov 2022 08:25:56 -0700 Keith Busch wrote: > From: Keith Busch > > The 6.0 kernel made some changes to the direct io interface to allow > offsets in user addresses. This based on the hardware's capabilities > reported in the request_queue's dma_alignment attribute. > > dm-crypt

Re: [dm-devel] Regression: wrong DIO alignment check with dm-crypt

2022-11-04 Thread Dmitrii Tcvetkov
On Wed, 2 Nov 2022 14:09:54 -0600 Keith Busch wrote: > On Wed, Nov 02, 2022 at 08:03:45PM +0300, Dmitrii Tcvetkov wrote: > > > > Applied on top 6.1-rc3, the issue still reproduces. > > Yeah, I see that now. I needed to run a dm-crypt setup to figure out > how they're

Re: [dm-devel] Regression: wrong DIO alignment check with dm-crypt

2022-11-03 Thread Dmitrii Tcvetkov
On Wed, 2 Nov 2022 10:14:52 -0600 Keith Busch wrote: > This is what I'm coming up with. Only compile tested (still setting up > an enviroment to actually run it). > > --- > diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c > index 159c6806c19b..9334e58a4c9f 100644 > ---