Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-20609

FIEMAP on a sparse DoM file makes every later write to that file stall

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Reproduction

      ### client A - sparse DoM file
      mkdir /mnt/lustre/dom
      lfs setstripe -E 1M -L mdt -E -1 -c 1 /mnt/lustre/dom
      dd if=/dev/zero of=/mnt/lustre/dom/f1 bs=4k count=1 seek=32     # hole 0..128K
      
      ### client B - write it and keep it open, so B holds the DOM lock
      /usr/lib64/lustre/tests/multiop /mnt/lustre/dom/f1 Ow_ &
      
      ### client A - one FIEMAP with FIEMAP_FLAG_SYNC; returns correct extents
      /usr/lib64/lustre/tests/checkfiemap /mnt/lustre/dom/f1 4096
      
      ### client A - any write to that file from now on
      dd if=/dev/zero of=/mnt/lustre/dom/f1 bs=4k count=1 conv=notrunc # stall!

       

      Found by graph-hunter-v1

            skoyama Sohei Koyama
            skoyama Sohei Koyama
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: