summaryrefslogtreecommitdiffstats
path: root/COPYRIGHT
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-02-23 15:32:51 -0800
committerBrian Behlendorf <[email protected]>2012-03-07 16:06:23 -0800
commit2c6d0b1e07b0265f0661ed7851d3aa8d3e75e7a9 (patch)
tree41827e1429cda5f2467ad75037f5914e1ca35f1a /COPYRIGHT
parent76c2b24c613ddac896ee67250b467fd40d6a5689 (diff)
Add zio constructor/destructor
Add a standard zio constructor and destructor. Normally, this is done to reduce to cost of allocating a new structure by reducing expensive operations such as memory allocations. However, in this case none of the operations moved out of zio_create() were really very expensive. This change was principly made as a debug patch (and workaround) for a zio_destroy() race. The is good evidence that zio_create() is reinitializing a mutex which is really still in use by another thread. This would completely explain the observed symptoms in the issue report. This patch doesn't fix the root cause of the race, but it should make it less likely by only initializing the mutex once in the constructor. Also, this particular flaw might have gone unnoticed in other zfs implementations due to the specific implementation details of Linux ticket spinlocks. Once the real root cause is determined and resolved this change can be safely reverted. Until then this should help workaround the issue. Signed-off-by: Brian Behlendorf <[email protected]> Issue #496
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions