All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Carsten Emde <C.Emde@osadl.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	jslaby@suse.cz, Greg KH <gregkh@suse.de>
Subject: Re: [PATCH] ipc:fix the wrong use of schedule_hrtimeout_range_clock()
Date: Fri, 28 Oct 2011 09:36:13 +0800	[thread overview]
Message-ID: <4EAA070D.2020007@cn.fujitsu.com> (raw)
In-Reply-To: <1316673323-5048-1-git-send-email-gaowanlong@cn.fujitsu.com>

Anyone else should be added to cc?


On 09/22/2011 02:35 PM, Wanlong Gao wrote:

> 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();



      reply	other threads:[~2011-10-28  1:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EAA070D.2020007@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=C.Emde@osadl.org \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.