[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1316673323-5048-1-git-send-email-gaowanlong@cn.fujitsu.com>
Date: Thu, 22 Sep 2011 14:35:23 +0800
From: Wanlong Gao <gaowanlong@...fujitsu.com>
To: linux-kernel@...r.kernel.org, stable@...nel.org
Cc: Carsten Emde <C.Emde@...dl.org>,
Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Wanlong Gao <gaowanlong@...fujitsu.com>
Subject: [PATCH] ipc:fix the wrong use of schedule_hrtimeout_range_clock()
Fix the wrong use of schedule_hrtimeout_range_clock() in wq_sleep(), although
it is harmless for the syscall mq_timed* now.
It's introduced by 9ca7d8e.
Signed-off-by: Wanlong Gao <gaowanlong@...fujitsu.com>
---
ipc/mqueue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index ed049ea..2e0ecfc 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -449,8 +449,8 @@ static int wq_sleep(struct mqueue_inode_info *info, int sr,
set_current_state(TASK_INTERRUPTIBLE);
spin_unlock(&info->lock);
- time = schedule_hrtimeout_range_clock(timeout,
- HRTIMER_MODE_ABS, 0, CLOCK_REALTIME);
+ time = schedule_hrtimeout_range_clock(timeout, 0,
+ HRTIMER_MODE_ABS, CLOCK_REALTIME);
while (ewp->state == STATE_PENDING)
cpu_relax();
--
1.7.7.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists