linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20220531191137.2291467-10-kbusch@fb.com>]
  • [parent not found: <20220531191137.2291467-11-kbusch@fb.com>]
  • [parent not found: <20220531191137.2291467-12-kbusch@fb.com>]
  • [parent not found: <20220531191137.2291467-8-kbusch@fb.com>]
  • * Re: [PATCHv5 00/11] direct-io dma alignment
           [not found] <20220531191137.2291467-1-kbusch@fb.com>
                       ` (4 preceding siblings ...)
           [not found] ` <20220531191137.2291467-8-kbusch@fb.com>
    @ 2022-06-01  7:11 ` Eric Biggers
      2022-06-01 14:28   ` Keith Busch
           [not found] ` <20220531191137.2291467-2-kbusch@fb.com>
                       ` (2 subsequent siblings)
      8 siblings, 1 reply; 14+ messages in thread
    From: Eric Biggers @ 2022-06-01  7:11 UTC (permalink / raw)
      To: Keith Busch
      Cc: linux-fsdevel, linux-block, linux-nvme, axboe, Kernel Team, hch,
    	bvanassche, damien.lemoal, pankydev8, Keith Busch
    
    On Tue, May 31, 2022 at 12:11:26PM -0700, Keith Busch wrote:
    > From: Keith Busch <kbusch@kernel.org>
    > 
    > The most significant change from v4 is the alignment is now checked
    > prior to building the bio. This gets the expected EINVAL error for
    > misaligned userspace iovecs in all cases now (Eric Biggers).
    > 
    > I've removed the legacy fs change, so only iomap filesystems get to use
    > this alignement capability (Christoph Hellwig).
    > 
    > The block fops check for alignment returns a bool now (Damien).
    > 
    > Adjusted some comments, docs, and other minor style issues.
    > 
    > Reviews added for unchanged or trivially changed patches, removed
    > reviews for ones that changed more significantly.
    > 
    > As before, I tested using 'fio' with forced misaligned user buffers on
    > raw block, xfs, and ext4 (example raw block profile below).
    > 
    
    I still don't think you've taken care of all the assumptions that bv_len is a
    multiple of logical block size, or at least SECTOR_SIZE.  Try this:
    
    	git grep -E 'bv_len (>>|/)'
    
    Also:
    
    	git grep '<.*bv_len;'
    
    Also take a look at bio_for_each_segment(), specifically how iter->bi_sector is
    updated.
    
    - Eric
    
    ^ permalink raw reply	[flat|nested] 14+ messages in thread
  • [parent not found: <20220531191137.2291467-2-kbusch@fb.com>]
  • [parent not found: <20220531191137.2291467-6-kbusch@fb.com>]
  • [parent not found: <20220531191137.2291467-7-kbusch@fb.com>]

  • end of thread, other threads:[~2022-06-06 16:24 UTC | newest]
    
    Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20220531191137.2291467-1-kbusch@fb.com>
         [not found] ` <20220531191137.2291467-9-kbusch@fb.com>
    2022-06-01  5:30   ` [PATCHv5 08/11] iov: introduce iov_iter_aligned Christoph Hellwig
         [not found] ` <20220531191137.2291467-10-kbusch@fb.com>
    2022-05-31 21:46   ` [PATCHv5 09/11] block: introduce bdev_iter_is_aligned helper Eric Biggers
    2022-06-01  5:31   ` Christoph Hellwig
         [not found] ` <20220531191137.2291467-11-kbusch@fb.com>
    2022-06-01  5:31   ` [PATCHv5 10/11] block: relax direct io memory alignment Christoph Hellwig
         [not found] ` <20220531191137.2291467-12-kbusch@fb.com>
    2022-06-01  5:32   ` [PATCHv5 11/11] fs: add support for dma aligned direct-io Christoph Hellwig
         [not found] ` <20220531191137.2291467-8-kbusch@fb.com>
    2022-06-01  7:04   ` [PATCHv5 07/11] block/bounce: count bytes instead of sectors Eric Biggers
    2022-06-01  7:11 ` [PATCHv5 00/11] direct-io dma alignment Eric Biggers
    2022-06-01 14:28   ` Keith Busch
    2022-06-01 16:12     ` Keith Busch
    2022-06-06 16:24       ` Keith Busch
         [not found] ` <20220531191137.2291467-2-kbusch@fb.com>
    2022-06-01  8:03   ` [PATCHv5 01/11] block: fix infinite loop for invalid zone append Johannes Thumshirn
         [not found] ` <20220531191137.2291467-6-kbusch@fb.com>
    2022-06-01  5:29   ` [PATCHv5 05/11] block: add a helper function for dio alignment Christoph Hellwig
    2022-06-01  8:04   ` Johannes Thumshirn
         [not found] ` <20220531191137.2291467-7-kbusch@fb.com>
    2022-06-01  8:05   ` [PATCHv5 06/11] block/merge: count bytes instead of sectors Johannes Thumshirn
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).