]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: Remove LASSERTS from router checker
authorDoug Oucharek <doug.s.oucharek@intel.com>
Mon, 22 Feb 2016 22:29:25 +0000 (17:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Feb 2016 02:05:49 +0000 (18:05 -0800)
In lnet_router_checker(), there are two LASSERTS.  Neither protects
us from anything and one of them triggered for a customer crashing
the system unecessarily.  This patch removes them.

Signed-off-by: Doug Oucharek <doug.s.oucharek@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7362
Reviewed-on: http://review.whamcloud.com/17003
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Matt Ezell <ezellma@ornl.gov>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/router.c

index 5a6086b0069ca91606eaea8c02074d7ba00933bd..5e8b0ba763e966baefb1e6a967c8a3a77c94b22a 100644 (file)
@@ -1228,8 +1228,6 @@ lnet_router_checker(void *arg)
 
        cfs_block_allsigs();
 
-       LASSERT(the_lnet.ln_rc_state == LNET_RC_STATE_RUNNING);
-
        while (the_lnet.ln_rc_state == LNET_RC_STATE_RUNNING) {
                __u64 version;
                int cpt;
@@ -1287,8 +1285,6 @@ rescan:
                                                         cfs_time_seconds(1));
        }
 
-       LASSERT(the_lnet.ln_rc_state == LNET_RC_STATE_STOPPING);
-
        lnet_prune_rc_data(1); /* wait for UNLINK */
 
        the_lnet.ln_rc_state = LNET_RC_STATE_SHUTDOWN;