From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DNS_FROM_OPENWHOIS, RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:organization:to:subject:date:user-agent :references:in-reply-to:x-kmail-quoteprefix:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; bh=R4rkBosbkYT4YEcYkcQ+uncHRuuHK43q2sY/zztGFwg=; b=JmVaTU92ldbrukCQemxWCEZKS+k0zp7CZGnyomnT6JfEVgUyknjna71s4c7UufaumH DTk7dwl1xHc2FM6m5ZNw4lLbKp5c1+zxSPv5eczY6UA3M3xYnktLalFti9dFIgQ/H4oh dfvJCPjAdw/n5ieT+mAKtkCsC7s7r14YIrdl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:references:in-reply-to :x-kmail-quoteprefix:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=WgvQaNSjssDGG5hEEuyLxY5FD05r30VjmxWqgu3oPcwJniAKpi8mfD/YI8Xzb6r57u u6GnRoXk2peJnPdvsNi2Rw5VpDAHlpEgOBBpVVTDSn+/zGA0uGQgibZ0VeasBFlM59el NIibHody0GORu26FmRiUw+SJ/t0HuWouJ4Wg4= From: =?koi8-r?b?99HexdPMwdc=?= Organization: GSTU To: ALT Linux Sisyphus discussions Date: Thu, 17 Feb 2011 12:46:16 +0200 User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) References: <201102161900.55407.slchess@gmail.com> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201102171246.16494.slchess@gmail.com> Subject: Re: [sisyphus] =?koi8-r?b?Mi42LjMyLW92ei1lbC1hbHQxMSDPws7P18nM09Eg?= =?koi8-r?b?Oyg=?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2011 10:46:25 -0000 Archived-At: List-Archive: List-Post: On Thursday 17 February 2011 10:31:30 Anton Protopopov wrote: > > =E8=CF=D4=D1 =D7=D2=CF=C4=C5 =C9 =D2=C1=C2=CF=D4=C1=C5=D4 =CE=CF =DC=D4= =C9 =D3=CF=CF=C2=DD=C5=CE=C9=D1 =CE=C1=D0=D2=D1=C7=C1=C0=D4. > > =FC=D4=CF =CB upstream =C9 =C5=D3=CC=C9 =DC=D4=CF =D0=D2=CF=C9=D3=C8=CF= =C4=C9=D4 =D5 =D7=C1=D3 =D3=D4=C1=C2=C9=CC=D8=CE=CF, =D4=CF =D0=CF=D7=C5=D3= =D8=D4=C5, > =D0=CF=D6=C1=CC=D5=CA=D3=D4=C1, =C2=C1=C7=D5 =CE=C1 kernel =D7=C5=D2=D3= =C9=C9 rhel6-2.6.32 =D7 bugzilla.openvz.org > _______________________________________________ > Sisyphus mailing list > Sisyphus@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/sisyphus upstream =D5=D6=C5 =D0=CF=C6=C9=CB=D3=C9=CC, =CB=CF=C7=C4=C1 =D5 =CE=C1=D3 = =D6=C4=C1=D4=D8? =2D-- kernel/sched.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index c0de62e..c132c23 100644 =2D-- a/kernel/sched.c +++ b/kernel/sched.c @@ -2459,7 +2459,8 @@ void set_task_cpu(struct task_struct *p, unsigned int= =20 new_cpu) * We should never call set_task_cpu() on a blocked task, * ttwu() will sort out the placement. */ =2D WARN_ON(p->state !=3D TASK_RUNNING && p->state !=3D TASK_WAKING); + WARN_ON_ONCE(p->state !=3D TASK_RUNNING && p->state !=3D TASK_WAKING && + !(task_thread_info(p)->preempt_count & PREEMPT_ACTIVE)); #endif =20 trace_sched_migrate_task(p, new_cpu);