Fix read-only pool hang on unmount
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jul 2013 16:15:46 +0000 (09:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jul 2013 16:22:23 +0000 (09:22 -0700)
commitc9ada6d5a00ba66fd54d62b4a1684e561fe2c9a4
tree967ba0391eee1d532474cc87c720e7a26c6d8379
parent76351672c222f28ea1b681097a9eff58a6791555
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
module/zfs/zfs_vfsops.c