]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/orangefs/super.c
net: hns3: Fix for information of phydev lost problem when down/up
[mirror_ubuntu-bionic-kernel.git] / fs / orangefs / super.c
index 36f1390b5ed7d6d324471ca145c529cda5477555..89a062af477e162cd7d9bd04e6bd981bf867ccbf 100644 (file)
@@ -579,6 +579,11 @@ void orangefs_kill_sb(struct super_block *sb)
        /* provided sb cleanup */
        kill_anon_super(sb);
 
+       if (!ORANGEFS_SB(sb)) {
+               mutex_lock(&orangefs_request_mutex);
+               mutex_unlock(&orangefs_request_mutex);
+               return;
+       }
        /*
         * issue the unmount to userspace to tell it to remove the
         * dynamic mount info it has for this superblock