Testing this patch:
inaddy@iscsixfs:~$ sudo uname -a Linux iscsixfs 4.4.70+ #2 SMP Mon Jul 24 19:25:49 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
inaddy@iscsixfs:~$ sudo dmesg | grep xfs [ 109.876336] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 109.876420] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 109.876463] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 109.876524] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 ... tons of times ... [ 114.612131] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 114.612204] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 114.612254] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_read_buf_map") error 5 numblks 1 [ 114.631338] XFS (sda1): xfs_do_force_shutdown(0x2) called from line 1197 of file /home/inaddy/sources/trees/xenial/fs/xfs/xfs_log.c. Return address = 0xffffffffc032e0d8 [ 114.631381] XFS (sda1): xfs_log_force: error -5 returned. [ 114.635642] XFS (sda1): xfs_do_force_shutdown(0x2) called from line 1197 of file /home/inaddy/sources/trees/xenial/fs/xfs/xfs_log.c. Return address = 0xffffffffc032e0d8 [ 114.680054] XFS (sda1): xfs_log_force: error -5 returned.
inaddy@iscsixfs:~$ lsmod | grep xfs xfs 970752 1 libcrc32c 16384 1 xfs
inaddy@iscsixfs:~$ sudo umount /xfs01 [ 139.491719] sd 2:0:0:1: rejecting I/O to offline device [ 139.492705] blk_update_request: I/O error, dev sda, sector 0
inaddy@iscsixfs:~$ sudo rmmod xfs
Patch fixes the issue.
inaddy@iscsixfs:~$ sudo modprobe xfs
inaddy@iscsixfs:~$ ls /dev/sd* /dev/sda /dev/sda1 /dev/sdb /dev/sdb1
inaddy@iscsixfs:~$ sudo mount /dev/sda1 /xfs01
inaddy@iscsixfs:~$ ls /xfs01 Bonnie.1677
Disk is back online after module was reloaded. (I could have checked slab objects for xfs_log_ticket but I guess this is enough).
Testing this patch:
inaddy@iscsixfs:~$ sudo uname -a
Linux iscsixfs 4.4.70+ #2 SMP Mon Jul 24 19:25:49 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
inaddy@iscsixfs:~$ sudo dmesg | grep xfs read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 read_buf_ map") error 5 numblks 1 force_shutdown( 0x2) called from line 1197 of file /home/inaddy/ sources/ trees/xenial/ fs/xfs/ xfs_log. c. Return address = 0xffffffffc032e0d8 force_shutdown( 0x2) called from line 1197 of file /home/inaddy/ sources/ trees/xenial/ fs/xfs/ xfs_log. c. Return address = 0xffffffffc032e0d8
[ 109.876336] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 109.876420] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 109.876463] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 109.876524] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
... tons of times ...
[ 114.612131] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 114.612204] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 114.612254] XFS (sda1): metadata I/O error: block 0xc34d83 ("xfs_trans_
[ 114.631338] XFS (sda1): xfs_do_
[ 114.631381] XFS (sda1): xfs_log_force: error -5 returned.
[ 114.635642] XFS (sda1): xfs_do_
[ 114.680054] XFS (sda1): xfs_log_force: error -5 returned.
inaddy@iscsixfs:~$ lsmod | grep xfs
xfs 970752 1
libcrc32c 16384 1 xfs
inaddy@iscsixfs:~$ sudo umount /xfs01
[ 139.491719] sd 2:0:0:1: rejecting I/O to offline device
[ 139.492705] blk_update_request: I/O error, dev sda, sector 0
inaddy@iscsixfs:~$ sudo rmmod xfs
Patch fixes the issue.
inaddy@iscsixfs:~$ sudo modprobe xfs
inaddy@iscsixfs:~$ ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1
inaddy@iscsixfs:~$ sudo mount /dev/sda1 /xfs01
inaddy@iscsixfs:~$ ls /xfs01
Bonnie.1677
Disk is back online after module was reloaded.
(I could have checked slab objects for xfs_log_ticket but I guess this is enough).