Whamcloud - gitweb
LU-3063 osc: Check return code for lu_kmem_init 88/7388/2
authorKeith Mannthey <keith.mannthey@intel.com>
Sat, 1 Jun 2013 03:06:30 +0000 (20:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 31 Aug 2013 18:37:34 +0000 (18:37 +0000)
lu_kmem_init can fail and returns has a return code.
Check for this return code in lu_kmem_init.

This issue was found during 2gb VM Racer testing

Signed-off-by: Keith Mannthey <keith.mannthey@intel.com>
Change-Id: I4ca9d5bae212591d5109b2053940161f9e28baeb
Reviewed-on: http://review.whamcloud.com/6514
Tested-by: Hudson
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/7388

lustre/osc/osc_request.c

index f639694..419f361 100644 (file)
@@ -3686,6 +3686,8 @@ int __init osc_init(void)
         CDEBUG(D_INFO, "Lustre OSC module (%p).\n", &osc_caches);
 
         rc = lu_kmem_init(osc_caches);
+       if (rc)
+               RETURN(rc);
 
         lprocfs_osc_init_vars(&lvars);