Another note: this can also be triggered only with rename operations on
zvols:

$ sudo zfs create -V 4096k pool1/zfsrename 1
$ sudo zfs create -V 4096k pool1/zfsrename 3

and then in two shells in parallel:

$ while : ; do echo "RENAME" `date`; sudo zfs rename pool1/testrename3
pool1/testrename4; sudo zfs rename pool1/testrename4 pool1/testrename3;
done

$ while : ; do echo "RENAME" `date`; sudo zfs rename pool1/testrename1
pool1/testrename2; sudo zfs rename pool1/testrename2 pool1/testrename1;
done

takes a bit longer than with the create rename destroy script from
above, but triggers after 10-15 seconds in the same test VM:

user@test:~$ sudo cat /proc/6338/stack
[<ffffffffc02abc41>] spa_open_common+0x61/0x480 [zfs]
[<ffffffffc02ac083>] spa_open+0x13/0x20 [zfs]
[<ffffffffc02e2112>] pool_status_check.part.24+0x32/0xa0 [zfs]
[<ffffffffc02e2509>] zfsdev_ioctl+0x389/0x4b0 [zfs]
[<ffffffff8121e7df>] do_vfs_ioctl+0x29f/0x490
[<ffffffff8121ea49>] SyS_ioctl+0x79/0x90
[<ffffffff81821ff2>] entry_SYSCALL_64_fastpath+0x16/0x71
[<ffffffffffffffff>] 0xffffffffffffffff
user@test:~$ sudo cat /proc/6333/stack
[<ffffffffc01adc49>] cv_wait_common+0x109/0x140 [spl]
[<ffffffffc01adc95>] __cv_wait+0x15/0x20 [spl]
[<ffffffffc02ba225>] txg_wait_synced+0xe5/0x130 [zfs]
[<ffffffffc0295ca9>] dsl_sync_task+0x179/0x260 [zfs]
[<ffffffffc028b53b>] dsl_dir_rename+0x5b/0x80 [zfs]
[<ffffffffc02de13d>] zfs_ioc_rename+0x10d/0x120 [zfs]
[<ffffffffc02e25a3>] zfsdev_ioctl+0x423/0x4b0 [zfs]
[<ffffffff8121e7df>] do_vfs_ioctl+0x29f/0x490
[<ffffffff8121ea49>] SyS_ioctl+0x79/0x90
[<ffffffff81821ff2>] entry_SYSCALL_64_fastpath+0x16/0x71
[<ffffffffffffffff>] 0xffffffffffffffff


** Attachment added: "ps faxl output"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+attachment/4608435/+files/psfaxl.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560869

Title:
  Concurrent zfs create and rename operations can lock a zpool
  completely

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to