]> git.proxmox.com Git - mirror_zfs-debian.git/commit
fzap_cursor_move_to_key() should drop l_rwlock
authorNed Bass <bass6@llnl.gov>
Tue, 22 Jan 2013 22:33:01 +0000 (14:33 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Jan 2013 00:31:16 +0000 (16:31 -0800)
commit1305d33a4b0f8b10cea61989330cc5d059cfa7cb
tree51b326b613314ab6602e97e845afc0971a2e8cb6
parent09a661e960df49f1256ba4c5ae15f6956d27df84
fzap_cursor_move_to_key() should drop l_rwlock

Callers of zap_deref_leaf() must be careful to drop leaf->l_rwlock
since that function returns with the lock held on success.  All other
callers drop the lock correctly but it seems fzap_cursor_move_to_key()
does not.  This may block writers or cause VERIFY failures when the
lock is freed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1215
Closes zfsonlinux/spl#143
Closes zfsonlinux/spl#97
module/zfs/zap.c