]> git.proxmox.com Git - mirror_zfs-debian.git/commit - module/zfs/zfs_ctldir.c
call_usermodehelper() should wait for process
authorNed Bass <bass6@llnl.gov>
Wed, 9 Jan 2013 23:46:31 +0000 (15:46 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Jan 2013 00:54:52 +0000 (16:54 -0800)
commit761394b3af152895ac68a970a91a4f8a917c547b
tree150fc317c9f41c6a3870072fbe2b3428a0874e8e
parent1c50c992bafd96773dc3950d382a89806df8cc9c
call_usermodehelper() should wait for process

As of Linux 3.4 the UMH_WAIT_* constants were renumbered.  In
particular, the meaning of "1" changed from UMH_WAIT_PROC (wait for
process to complete), to UMH_WAIT_EXEC (wait for the exec, but not the
process).  A number of call sites used the number 1 instead of the
constant name, so the behavior was not as expected on kernels with this
change.

One visible consequence of this change was that processes accessing
automounted snapshots received an ELOOP error because they failed to
wait for zfs.mount to complete.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #816
module/zfs/vdev_disk.c
module/zfs/zfs_ctldir.c
module/zpios/pios.c