From f998be516e9be203c0ad07cefe6bbdc53cf34102 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Thu, 31 Jan 2013 14:10:08 -0500 Subject: [PATCH] LU-2725 ost: ost_rw_hpreq_check should return 0 or 1 ost_rw_hpreq_check was returning number of matched locks which is wrong. Change-Id: Ic4d3dd4a186b616c13ffd9f897254da3c19f84f8 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/5233 Reviewed-by: Andreas Dilger Tested-by: Oleg Drokin Reviewed-by: Mike Pershin Tested-by: Hudson Tested-by: Maloo --- lustre/ost/ost_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 98d6c37..118037f 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -1946,7 +1946,7 @@ static int ost_rw_hpreq_check(struct ptlrpc_request *req) CDEBUG(D_DLMTRACE, "%s: refreshed %u locks timeout for req %p.\n", obd->obd_name, opd.opd_locks, req); - RETURN(opd.opd_locks); + RETURN(opd.opd_locks > 0); } static void ost_rw_hpreq_fini(struct ptlrpc_request *req) -- 1.8.3.1