HomeFreeBSD

Revert special case code from pre-hashtable nvlist era

Description

Revert special case code from pre-hashtable nvlist era

Before a hash table was added on top of the nvlist code, there were
cases where the nvlist allocation was changed from fnvlist_alloc()
to nvlist_alloc() to avoid expensive NV_UNIQUE_NAME checks. Now
this is no longer necessary. These changes should be reverted to be
consistent with other code. There are some cases where this change
will also reduce the number of iterations.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mark Maybee <mark.maybee@delphix.com>
Closes #11464

Details

Provenance
Mark Maybee <mark.maybee@delphix.com>Authored on Jan 28 2021, 5:31 AM
GitHub <noreply@github.com>Committed on Jan 28 2021, 5:31 AM
Parents
rG2921ad6cba54: Fix zrele race in zrele_async that can cause hang
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGb2c5904a7839: Revert special case code from pre-hashtable nvlist era (authored by Mark Maybee <mark.maybee@delphix.com>).Jan 28 2021, 5:31 AM