Browse Source

nfsd: NFSD_FAULT_INJECTION depends on DEBUG_FS

NFSD_FAULT_INJECTION depends on DEBUG_FS, otherwise the debugfs_create_*
interface may return unexpected error -ENODEV, and cause system crash.

Signed-off-by: Chengyu Song <csong84@gatech.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Chengyu Song 10 years ago
parent
commit
629b8729cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/nfsd/Kconfig

+ 1 - 1
fs/nfsd/Kconfig

@@ -107,7 +107,7 @@ config NFSD_V4_SECURITY_LABEL
 
 
 config NFSD_FAULT_INJECTION
 config NFSD_FAULT_INJECTION
 	bool "NFS server manual fault injection"
 	bool "NFS server manual fault injection"
-	depends on NFSD_V4 && DEBUG_KERNEL
+	depends on NFSD_V4 && DEBUG_KERNEL && DEBUG_FS
 	help
 	help
 	  This option enables support for manually injecting faults
 	  This option enables support for manually injecting faults
 	  into the NFS server.  This is intended to be used for
 	  into the NFS server.  This is intended to be used for