]> granicus.if.org Git - zfs/commit
Introduce zv_state_lock
authorBoris Protopopov <boris.protopopov@actifio.com>
Wed, 10 May 2017 17:51:29 +0000 (13:51 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 May 2017 23:44:06 +0000 (19:44 -0400)
commit5559ba094feff560abe00afd31ab99dd1f70698c
treeeda8ea964618bc10b8c27fe18a3ba665e1e354d3
parent07783588bcb513a3a1f4d995b5d4685a9cfc89e5
Introduce zv_state_lock

The lock is designed to protect internal state of zvol_state_t and
to avoid taking spa_namespace_lock (e.g. in dmu_objset_own() code path)
while holding zvol_stat_lock. Refactor the code accordingly.

Signed-off-by: Boris Protopopov <boris.protopopov@actifio.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3484
Closes #6065
Closes #6134
module/zfs/zvol.c