From owner-svn-src-head@FreeBSD.ORG Mon Sep 13 07:18:01 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F703106564A; Mon, 13 Sep 2010 07:18:01 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2F1F08FC13; Mon, 13 Sep 2010 07:18:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o8D7I1pe072629; Mon, 13 Sep 2010 07:18:01 GMT (envelope-from davidxu@svn.freebsd.org) Received: (from davidxu@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o8D7I1jT072627; Mon, 13 Sep 2010 07:18:01 GMT (envelope-from davidxu@svn.freebsd.org) Message-Id: <201009130718.o8D7I1jT072627@svn.freebsd.org> From: David Xu Date: Mon, 13 Sep 2010 07:18:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212539 - head/lib/libthr/thread X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2010 07:18:01 -0000 Author: davidxu Date: Mon Sep 13 07:18:00 2010 New Revision: 212539 URL: http://svn.freebsd.org/changeset/base/212539 Log: PS_DEAD state needs not be checked because _thr_find_thread() has already checked it. Modified: head/lib/libthr/thread/thr_affinity.c Modified: head/lib/libthr/thread/thr_affinity.c ============================================================================== --- head/lib/libthr/thread/thr_affinity.c Mon Sep 13 07:16:48 2010 (r212538) +++ head/lib/libthr/thread/thr_affinity.c Mon Sep 13 07:18:00 2010 (r212539) @@ -51,10 +51,6 @@ _pthread_setaffinity_np(pthread_t td, si if (error == -1) error = errno; } else if ((error = _thr_find_thread(curthread, td, 0)) == 0) { - if (td->state == PS_DEAD) { - THR_THREAD_UNLOCK(curthread, td); - return (EINVAL); - } tid = TID(td); error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid, cpusetsize, cpusetp);