OpenZFS 7003 - zap_lockdir() should tag hold
commit8bea9815048e4b1a85905e0b381865dedd266f2d
authorMatthew Ahrens <mahrens@delphix.com>
Wed, 20 Jul 2016 22:39:55 +0000 (20 15:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Aug 2016 19:35:23 +0000 (19 12:35 -0700)
tree9b2efc67190d7523d982600dd040d5d84446f6ed
parentee6370a7a48e416cbd44819d007fdaba120a328d
OpenZFS 7003 - zap_lockdir() should tag hold

zap_lockdir() / zap_unlockdir() should take a "void *tag" argument which
tags the hold on the zap. This will help diagnose programming errors
which misuse the hold on the ZAP.

Sponsored by: Intel Corp.

Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Pavel Zakharov <pavel.zakha@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/7003
OpenZFS-commit: https://github.com/openzfs/openzfs/pull/108
Closes #4972
include/sys/dmu.h
include/sys/zap_impl.h
module/zfs/dbuf.c
module/zfs/zap.c
module/zfs/zap_micro.c