[lustre-devel] [PATCH 268/622] lustre: lov: Remove unnecessary assert

James Simmons jsimmons at infradead.org
Thu Feb 27 13:12:16 PST 2020


From: Patrick Farrell <pfarrell at whamcloud.com>

This is asserting on network data from the server, and
additionally, the LU-9846 (overstriping) work shows this
condition is not a problem if it does somehow occur.

WC-bug-id: https://jira.whamcloud.com/browse/LU-11796
Lustre-commit: 1d7104485119 ("LU-11796 lov: Remove unnecessary assert")
Signed-off-by: Patrick Farrell <pfarrell at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33882
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: James Simmons <uja.ornl at yahoo.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 fs/lustre/lov/lov_object.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/lustre/lov/lov_object.c b/fs/lustre/lov/lov_object.c
index c6324f4..c04b2ae 100644
--- a/fs/lustre/lov/lov_object.c
+++ b/fs/lustre/lov/lov_object.c
@@ -210,7 +210,6 @@ static int lov_init_raid0(const struct lu_env *env, struct lov_device *dev,
 
 	spin_lock_init(&r0->lo_sub_lock);
 	r0->lo_nr = lse->lsme_stripe_count;
-	LASSERT(r0->lo_nr <= lov_targets_nr(dev));
 
 	r0->lo_sub = kcalloc(r0->lo_nr, sizeof(r0->lo_sub[0]),
 			     GFP_KERNEL);
-- 
1.8.3.1



More information about the lustre-devel mailing list