HomeFreeBSD

Long hold the dataset during upgrade

Description

Long hold the dataset during upgrade

If the receive or rollback is performed while filesystem is upgrading
the objset may be evicted in dsl_dataset_clone_swap_sync_impl. This
will lead to NULL pointer dereference when upgrade tries to access
evicted objset.

This commit adds long hold of dataset during whole upgrade process.
The receive and rollback will return an EBUSY error until the
upgrade is not finished.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arkadiusz Bubała <arkadiusz.bubala@open-e.com>
Closes #5295
Closes #6837

Details

Provenance
Arkadiusz Bubała <arkadiusz.bubala@open-e.com>Authored on Nov 10 2017, 9:37 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 10 2017, 9:37 PM
Parents
rG62df1bc813e6: Fix encryption root hierarchy issue
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc0daec32f839: Long hold the dataset during upgrade (authored by Arkadiusz Bubała <arkadiusz.bubala@open-e.com>).Nov 10 2017, 9:37 PM