[lustre-devel] [PATCH 20/27] lustre: osc: cleanup comment in osc_object_is_contended

James Simmons jsimmons at infradead.org
Sun Jun 13 16:11:30 PDT 2021


From: Li Xi <lixi at ddn.com>

ll_file_is_contended() does not exist any more, so the comment
is invalid.

WC-bug-id: https://jira.whamcloud.com/browse/LU-14702
Lustre-commit: 269a157c600a68fa ("LU-14702 osc: cleanup comment in osc_object_is_contended")
Signed-off-by: Li Xi <lixi at ddn.com>
Reviewed-on: https://review.whamcloud.com/43775
Reviewed-by: James Simmons <jsimmons at infradead.org>
Reviewed-by: Neil Brown <neilb at suse.de>
Reviewed-by: Arshad Hussain <arshad.hussain at aeoncomputing.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 fs/lustre/osc/osc_object.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/lustre/osc/osc_object.c b/fs/lustre/osc/osc_object.c
index 8f36789..0dd926a 100644
--- a/fs/lustre/osc/osc_object.c
+++ b/fs/lustre/osc/osc_object.c
@@ -344,10 +344,6 @@ int osc_object_is_contended(struct osc_object *obj)
 	if (!obj->oo_contended)
 		return 0;
 
-	/*
-	 * I like copy-paste. the code is copied from
-	 * ll_file_is_contended.
-	 */
 	retry_time = ktime_add_ns(obj->oo_contention_time,
 				  osc_contention_time * NSEC_PER_SEC);
 	if (ktime_after(ktime_get(), retry_time)) {
-- 
1.8.3.1



More information about the lustre-devel mailing list