linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipc:fix the wrong use of schedule_hrtimeout_range_clock()
@ 2011-09-22  6:35 Wanlong Gao
  2011-10-28  1:36 ` Wanlong Gao
  0 siblings, 1 reply; 2+ messages in thread
From: Wanlong Gao @ 2011-09-22  6:35 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Carsten Emde, Thomas Gleixner, Andrew Morton, Wanlong Gao

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@cn.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-28  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-22  6:35 [PATCH] ipc:fix the wrong use of schedule_hrtimeout_range_clock() Wanlong Gao
2011-10-28  1:36 ` Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).