HomeFreeBSD

Disable parallel processing for 'zfs mount -l'

Description

Disable parallel processing for 'zfs mount -l'

Currently, 'zfs mount -a' will always attempt to parallelize
work related to mounting as best it can. Unfortunately, when
the user passes the '-l' option to load keys, this causes
all threads to prompt the user for their keys at once,
resulting in a confusing and racy user experience. This patch
simply disables parallel mounting when using the '-l' flag.

Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8762
Closes #8811

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on May 25 2019, 8:46 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 25 2019, 8:46 PM
Parents
rGbfd5a709e74d: Linux 5.2 compat: Directly call wait_on_page_bit()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8e3c3ed1b3b2: Disable parallel processing for 'zfs mount -l' (authored by Tom Caputi <tcaputi@datto.com>).May 25 2019, 8:46 PM