Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932342Ab3ENOtb (ORCPT ); Tue, 14 May 2013 10:49:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:57864 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932142Ab3ENOtQ (ORCPT ); Tue, 14 May 2013 10:49:16 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,671,1363158000"; d="scan'208";a="337039582" From: Imre Deak To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Daniel Vetter , "J. Bruce Fields" , Trond Myklebust , "David S. Miller" , Haggai Eran , Or Gerlitz , Shani Michaeli , Roland Dreier , linux-nfs@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 6/8] net/sunrpc: take msecs_to_jiffies_timeout into use Date: Tue, 14 May 2013 17:48:36 +0300 Message-Id: <1368542918-8861-7-git-send-email-imre.deak@intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368542918-8861-1-git-send-email-imre.deak@intel.com> References: <1368542918-8861-1-git-send-email-imre.deak@intel.com> In-Reply-To: <1368188011-23661-1-git-send-email-imre.deak@intel.com> References: <1368188011-23661-1-git-send-email-imre.deak@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 37 Use msecs_to_jiffies_timeout instead of open-coding the same. Signed-off-by: Imre Deak --- net/sunrpc/xprtrdma/verbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index 93726560..8a6575d 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c @@ -404,7 +404,7 @@ rpcrdma_create_id(struct rpcrdma_xprt *xprt, goto out; } wait_for_completion_interruptible_timeout(&ia->ri_done, - msecs_to_jiffies(RDMA_RESOLVE_TIMEOUT) + 1); + msecs_to_jiffies_timeout(RDMA_RESOLVE_TIMEOUT)); rc = ia->ri_async_rc; if (rc) goto out; @@ -417,7 +417,7 @@ rpcrdma_create_id(struct rpcrdma_xprt *xprt, goto out; } wait_for_completion_interruptible_timeout(&ia->ri_done, - msecs_to_jiffies(RDMA_RESOLVE_TIMEOUT) + 1); + msecs_to_jiffies_timeout(RDMA_RESOLVE_TIMEOUT)); rc = ia->ri_async_rc; if (rc) goto out; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/