HomeFreeBSD

Fix read-only pool hang on unmount

Description

Fix read-only pool hang on unmount

During mount a filesystem dataset would have the MS_RDONLY bit
incorrectly cleared even if the entire pool was read-only.
There is existing to code to handle this case but it was being run
before the property callbacks were registered. To resolve the
issue we move this read-only code after the callback registration.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1338

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 17 2013, 4:15 PM
Parents
rG76351672c222: Fix zfsctl_expire_snapshot() deadlock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc9ada6d5a00b: Fix read-only pool hang on unmount (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jul 17 2013, 4:22 PM