orangefs: ensure the userspace component is unmounted if mount fails
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:38:05 +0000 (15:38 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000 (14:33 -0400)
commit9d286b0d8207a70d7e0ffbd5be864ff7a62de05a
tree9b57c3faa769863e492560685ea7d9e180fca01c
parent53950ef541675df48c219a8d665111a0e68dfc2f
orangefs: ensure the userspace component is unmounted if mount fails

If the mount is aborted after userspace has been asked to mount,
userspace must be told to unmount.

Ordinarily orangefs_kill_sb does the unmount.  However it cannot be
called if the superblock has not been set up.  This is a very narrow
window.

The NULL fs_id is not unmounted.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-utils.c
fs/orangefs/super.c