[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
** Changed in: zfs-linux (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: Fix Released Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux 4.4.0-15-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 04/01/2014 dmi.bios.vendor: SeaBIOS dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org dmi.chassis.type: 1 dmi.chassis.vendor: QEMU dmi.chassis.version: pc-i440fx-2.5 dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: dmi.product.name: Standard PC (i440FX + PIIX, 1996) dmi.product.version: pc-i440fx-2.5 dmi.sys.vendor: QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
Does not trigger anymore with linux-image-4.4.0-16-generic 4.4.0-16.32 / zfs.ko v0.6.5.6-0ubuntu1. zfsutils-linux and friends are still on 0.6.5.4-0ubuntu6. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: In Progress Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux 4.4.0-15-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 04/01/2014 dmi.bios.vendor: SeaBIOS dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org dmi.chassis.type: 1 dmi.chassis.vendor: QEMU dmi.chassis.version: pc-i440fx-2.5 dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: dmi.product.name: Standard PC (i440FX + PIIX, 1996) dmi.product.version: pc-i440fx-2.5 dmi.sys.vendor: QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
** Changed in: zfs-linux (Ubuntu) Status: New => In Progress ** Changed in: zfs-linux (Ubuntu) Importance: Undecided => High ** Changed in: zfs-linux (Ubuntu) Assignee: (unassigned) => Colin Ian King (colin-king) -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: In Progress Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux 4.4.0-15-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 04/01/2014 dmi.bios.vendor: SeaBIOS dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org dmi.chassis.type: 1 dmi.chassis.vendor: QEMU dmi.chassis.version: pc-i440fx-2.5 dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: dmi.product.name: Standard PC (i440FX + PIIX, 1996) dmi.product.version: pc-i440fx-2.5 dmi.sys.vendor: QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
Should be fixed with upstream version 0.6.5.6, so I guess this can be closed once that version hits the archive. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: New Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux 4.4.0-15-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 04/01/2014 dmi.bios.vendor: SeaBIOS dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org dmi.chassis.type: 1 dmi.chassis.vendor: QEMU dmi.chassis.version: pc-i440fx-2.5 dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: dmi.product.name: Standard PC (i440FX + PIIX, 1996) dmi.product.version: pc-i440fx-2.5 dmi.sys.vendor: QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
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 [] spa_open_common+0x61/0x480 [zfs] [] spa_open+0x13/0x20 [zfs] [] pool_status_check.part.24+0x32/0xa0 [zfs] [] zfsdev_ioctl+0x389/0x4b0 [zfs] [] do_vfs_ioctl+0x29f/0x490 [] SyS_ioctl+0x79/0x90 [] entry_SYSCALL_64_fastpath+0x16/0x71 [] 0x user@test:~$ sudo cat /proc/6333/stack [] cv_wait_common+0x109/0x140 [spl] [] __cv_wait+0x15/0x20 [spl] [] txg_wait_synced+0xe5/0x130 [zfs] [] dsl_sync_task+0x179/0x260 [zfs] [] dsl_dir_rename+0x5b/0x80 [zfs] [] zfs_ioc_rename+0x10d/0x120 [zfs] [] zfsdev_ioctl+0x423/0x4b0 [zfs] [] do_vfs_ioctl+0x29f/0x490 [] SyS_ioctl+0x79/0x90 [] entry_SYSCALL_64_fastpath+0x16/0x71 [] 0x ** 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 Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: New Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux 4.4.0-15-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 04/01/2014 dmi.bios.vendor: SeaBIOS dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org dmi.chassis.type: 1 dmi.chassis.vendor: QEMU dmi.chassis.version: pc-i440fx-2.5 dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: dmi.product.name: Standard PC (i440FX + PIIX, 1996) dmi.product.version: pc-i440fx-2.5 dmi.sys.vendor: QEMU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
apport information ** Tags added: apport-collected xenial ** Description changed: 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. + Reported upstream in https://github.com/zfsonlinux/zfs/issues/4404 and apparently fixed with the linked commits. + --- + ApportVersion: 2.20-0ubuntu3 + Architecture: amd64 + AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: + CurrentDesktop: Unity + DistroRelease: Ubuntu 16.04 + HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad + InstallationDate: Installed on 2016-03-18 (4 days ago) + InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) + IwConfig: + ens18 no wireless extensions. + + lono wireless extensions. + Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub + MachineType: QEMU Standard PC (i440FX + PIIX, 1996) + NonfreeKernelModules: zfs zunicode zcommon znvpair zavl + Package: zfs-linux + ProcFB: 0 qxldrmfb + ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 + ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 + RelatedPackageVersions: + linux-restricted-modules-4.4.0-15-generic N/A + linux-backports-modules-4.4.0-15-generic N/A + linux-firmware1.157 + RfKill: + + Tags: xenial + Uname: Linux 4.4.0-15-generic x86_64 + UpgradeStatus: No upgrade log present (probably fresh install) + UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo + _MarkForUpload: True + dmi.bios.date: 04/01/2014 + dmi.bios.vendor: SeaBIOS + dmi.bios.version: rel-1.8.2-0-g33fbe13 by qemu-project.org + dmi.chassis.type: 1 + dmi.chassis.vendor: QEMU + dmi.chassis.version: pc-i440fx-2.5 + dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.8.2-0-g33fbe13byqemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.5:cvnQEMU:ct1:cvrpc-i440fx-2.5: + dmi.product.name: Standard PC (i440FX + PIIX, 1996) + dmi.product.version: pc-i440fx-2.5 + dmi.sys.vendor: QEMU ** Attachment added: "AlsaInfo.txt" https://bugs.launchpad.net/bugs/1560869/+attachment/4608353/+files/AlsaInfo.txt -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: New Bug description: 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. --- ApportVersion: 2.20-0ubuntu3 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: CurrentDesktop: Unity DistroRelease: Ubuntu 16.04 HibernationDevice: RESUME=UUID=41b79831-ff2c-4d62-8d09-0fd00a3fafad InstallationDate: Installed on 2016-03-18 (4 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307) IwConfig: ens18 no wireless extensions. lono wireless extensions. Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: QEMU Standard PC (i440FX + PIIX, 1996) NonfreeKernelModules: zfs zunicode zcommon znvpair zavl Package: zfs-linux ProcFB: 0 qxldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic root=UUID=ff5bf1a3-8ced-46a8-9e2e-e3e7d0e522c0 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 RelatedPackageVersions: linux-restricted-modules-4.4.0-15-generic N/A linux-backports-modules-4.4.0-15-generic N/A linux-firmware1.157 RfKill: Tags: xenial Uname: Linux
[Kernel-packages] [Bug 1560869] Re: Concurrent zfs create and rename operations can lock a zpool completely
Stack traces of hanging processes collected via /proc//stack: proc-1519-stack.log: [] cv_wait_common+0x109/0x140 [spl] [] __cv_wait_sig+0x15/0x20 [spl] [] txg_quiesce_thread+0x3e1/0x3f0 [zfs] [] thread_generic_wrapper+0x71/0x80 [spl] [] kthread+0xd8/0xf0 [] ret_from_fork+0x3f/0x70 [] 0x proc-1520-stack.log: [] zvol_rename_minors+0x58/0x190 [zfs] [] dsl_dir_rename_sync+0x31d/0x5a0 [zfs] [] dsl_sync_task_sync+0xe9/0xf0 [zfs] [] dsl_pool_sync+0x327/0x430 [zfs] [] spa_sync+0x366/0xb30 [zfs] [] txg_sync_thread+0x3ba/0x630 [zfs] [] thread_generic_wrapper+0x71/0x80 [spl] [] kthread+0xd8/0xf0 [] ret_from_fork+0x3f/0x70 [] 0x proc-1763-stack.log: [] cv_wait_common+0x109/0x140 [spl] [] __cv_wait_sig+0x15/0x20 [spl] [] zfs_zevent_wait+0x88/0xa0 [zfs] [] zfs_ioc_events_next+0xa6/0xe0 [zfs] [] zfsdev_ioctl+0x423/0x4b0 [zfs] [] do_vfs_ioctl+0x29f/0x490 [] SyS_ioctl+0x79/0x90 [] entry_SYSCALL_64_fastpath+0x16/0x71 [] 0x proc-7027-stack.log: [] cv_wait_common+0x109/0x140 [spl] [] __cv_wait+0x15/0x20 [spl] [] rrw_enter_read_impl+0x4c/0x160 [zfs] [] rrw_enter+0x1c/0x20 [zfs] [] dsl_pool_hold+0x5a/0x80 [zfs] [] dmu_objset_own+0x44/0xd0 [zfs] [] __zvol_create_minor+0x127/0x640 [zfs] [] zvol_create_minor+0x33/0x70 [zfs] [] zvol_create_minors_cb+0xe/0x20 [zfs] [] dmu_objset_find_impl+0x112/0x3f0 [zfs] [] dmu_objset_find+0x58/0x90 [zfs] [] zvol_create_minors+0x29/0x30 [zfs] [] zfs_ioc_create+0x190/0x2a0 [zfs] [] zfsdev_ioctl+0x218/0x4b0 [zfs] [] do_vfs_ioctl+0x29f/0x490 [] SyS_ioctl+0x79/0x90 [] entry_SYSCALL_64_fastpath+0x16/0x71 [] 0x proc-7038-stack.log: [] cv_wait_common+0x109/0x140 [spl] [] __cv_wait+0x15/0x20 [spl] [] txg_wait_synced+0xe5/0x130 [zfs] [] dsl_sync_task+0x179/0x260 [zfs] [] dsl_dir_rename+0x5b/0x80 [zfs] [] zfs_ioc_rename+0x10d/0x120 [zfs] [] zfsdev_ioctl+0x423/0x4b0 [zfs] [] do_vfs_ioctl+0x29f/0x490 [] SyS_ioctl+0x79/0x90 [] entry_SYSCALL_64_fastpath+0x16/0x71 [] 0x ** Also affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1560869 Title: Concurrent zfs create and rename operations can lock a zpool completely Status in linux package in Ubuntu: Incomplete Status in zfs-linux package in Ubuntu: New Bug description: 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1560869/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp