Hi all, I hit a test hang in generic/224 when testing rmapbt enabled XFS on a host that has non-zero sunit/swidth reported from underlying device. And I simplified the reproducer to the following script, and the hang can be reproduced on any host now. ----- #!/bin/bash dev=/dev/sda5 mnt=/mnt/xfs mkfs -t xfs -m rmapbt=1 -d agcount=8,size=1g -f $dev mount $dev $mnt xfs_io -x -c "resblks 4" $mnt dd if=/dev/zero of=/mnt/xfs/testfile echo "dd should return and report ENOSPC" ----- sysrq-w output: sysrq: SysRq : Show Blocked State task PC stack pid father dd D 0 2504 2491 0x00000080 ffff88021077dd00 0000000000000000 ffff88021623be40 ffff88021fd99300 ffff8802107467c0 ffffc900019dbc18 ffffffff816e2cf5 ffff88020fa8ce90 ffffc900019dbc40 0000000000000286 ffff8802107467c0 ffff88020fa8ce90 Call Trace: [<ffffffff816e2cf5>] ? __schedule+0x195/0x630 [<ffffffff816e31c6>] schedule+0x36/0x80 [<ffffffff812534b4>] wb_wait_for_completion+0x64/0x90 [<ffffffff810d2910>] ? prepare_to_wait_event+0xf0/0xf0 [<ffffffff81255b3d>] sync_inodes_sb+0xad/0x290 [<ffffffff81288bc0>] ? iomap_write_end+0x80/0x80 [<ffffffff8128922c>] ? iomap_apply+0x6c/0x130 [<ffffffffa014c2a8>] xfs_flush_inodes+0x28/0x40 [xfs] [<ffffffffa013370b>] xfs_file_buffered_aio_write+0x18b/0x280 [xfs] [<ffffffffa0133890>] xfs_file_write_iter+0x90/0x130 [xfs] [<ffffffff81226b52>] __vfs_write+0xe2/0x140 [<ffffffff812279d2>] vfs_write+0xb2/0x1b0 [<ffffffff81003510>] ? syscall_trace_enter+0x1d0/0x2b0 [<ffffffff81228e25>] SyS_write+0x55/0xc0 [<ffffffff81003a47>] do_syscall_64+0x67/0x180 [<ffffffff816e796b>] entry_SYSCALL64_slow_path+0x25/0x25 I tested on 4.9-rc5 kernel, for-next branch from linux-xfs tree and latest djwong-devel branch from Darrick's tree. If you need more information please let me know. Thanks, Eryu -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html