summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/devorangefs-req.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-23 19:17:55 +0100
committerMike Marshall <hubcap@omnibond.com>2016-01-23 21:20:11 +0100
commit727cbfea623b78d46ce8e0f8c931b5189f3fe2e0 (patch)
tree43876fa45e56611fd9901f1b943be7438adbc518 /fs/orangefs/devorangefs-req.c
parentorangefs_clean_up_interrupted_operation: call with op->lock held (diff)
downloadlinux-727cbfea623b78d46ce8e0f8c931b5189f3fe2e0.tar.xz
linux-727cbfea623b78d46ce8e0f8c931b5189f3fe2e0.zip
orangefs: get rid of MSECS_TO_JIFFIES
All timeouts are in _seconds_, so all calls are of form MSECS_TO_JIFFIES(n * 1000), which is a convoluted way to spell n * HZ. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/devorangefs-req.c')
-rw-r--r--fs/orangefs/devorangefs-req.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c
index b7a6aa44ce3e..d8c436a0aa1b 100644
--- a/fs/orangefs/devorangefs-req.c
+++ b/fs/orangefs/devorangefs-req.c
@@ -435,9 +435,7 @@ wakeup:
spin_unlock(&op->lock);
if (!signal_pending(current)) {
- int timeout =
- MSECS_TO_JIFFIES(1000 *
- op_timeout_secs);
+ int timeout = op_timeout_secs * HZ;
if (!schedule_timeout(timeout)) {
gossip_debug(GOSSIP_DEV_DEBUG,
"%s: timed out.\n",