Public bug reported:

When doing "zfs create -V" and "zfs rename" operations on the same zpool
in parallel, there is a high chance for a deadlock leading to a complete
hang of the zpool in question (i.e., all further zfs operations hang
indefinitely).

Attached you find a simple perl script that should trigger the bug (the
pool variable needs to be set to your pool name), if run in two shells
at the same time:

$ for i in `seq 1 100`; do sudo ./zfsrenamebug.pl "A$i"; done

$ for i in `seq 1 100`; do sudo ./zfsrenamebug.pl "B$i"; done

Reported upstream in https://github.com/zfsonlinux/zfs/issues/4404 and
apparently fixed with the linked commits.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

** Affects: zfs-linux (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Script to trigger bug"
   
https://bugs.launchpad.net/bugs/1560869/+attachment/4608345/+files/zfsrenamebug.pl

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to