From f62391735dce440addba54c9a7640e2fdff5ea23 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Fri, 17 May 2013 23:18:55 -0400 Subject: [PATCH] LU-3306 mdt: Do not LBUG on double set of err_serious It seems the twisted code pathes in mdt could take strange routes and it's quite hard to guarantee they won't pass through setting err_serious twice, esp. since error handlers are traditionally poorly tested. Change-Id: I88fe880c22670263273bd79073efaecbe53d9215 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/6383 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin --- lustre/include/lustre_mdt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lustre/include/lustre_mdt.h b/lustre/include/lustre_mdt.h index c8b39d4..81b69fc 100644 --- a/lustre/include/lustre_mdt.h +++ b/lustre/include/lustre_mdt.h @@ -63,7 +63,6 @@ enum { static inline int err_serious(int rc) { LASSERT(rc < 0); - LASSERT(-rc < ESERIOUS); return -(-rc | ESERIOUS); } -- 1.8.3.1