]> git.proxmox.com Git - mirror_zfs.git/commit
Add missing dsl pool configuration lock
authorTim Chase <tim@chase2k.com>
Sat, 12 Oct 2013 22:33:28 +0000 (17:33 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Oct 2013 15:31:20 +0000 (08:31 -0700)
commitfbcb768c8fd1f32653f46ed4a8a9ceafe139087b
tree28910b11bdf22c93daf5d11c8a8acaea92cc70e6
parent7a6144076166944655d86f1449be8566d1a3c71a
Add missing dsl pool configuration lock

The semantics introduced by the restructured sync task of illumos
3464 require this lock when calling dmu_snapshot_list_next().
The pool is locked/unlocked for each iteration to reduce the
chance of long-running locks.

This was accidentally missed when doing the original port because
ZoL's control directory code is Linux-specific and is in a
different file than in illumos.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1785
module/zfs/zpl_ctldir.c