From owner-svn-src-head@FreeBSD.ORG Tue Jul 9 03:00:06 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B20AE33F; Tue, 9 Jul 2013 03:00:06 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A519A1090; Tue, 9 Jul 2013 03:00:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r69306nf014319; Tue, 9 Jul 2013 03:00:06 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r69306mq014318; Tue, 9 Jul 2013 03:00:06 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201307090300.r69306mq014318@svn.freebsd.org> From: Rui Paulo Date: Tue, 9 Jul 2013 03:00:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253054 - head/sys/dev/mmc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 09 Jul 2013 03:00:06 -0000 Author: rpaulo Date: Tue Jul 9 03:00:06 2013 New Revision: 253054 URL: http://svnweb.freebsd.org/changeset/base/253054 Log: Use meaningful names when creating mmc/sd threads. This can be useful when we want to be able to identify which mmcsd is stuck. Modified: head/sys/dev/mmc/mmcsd.c Modified: head/sys/dev/mmc/mmcsd.c ============================================================================== --- head/sys/dev/mmc/mmcsd.c Tue Jul 9 02:50:05 2013 (r253053) +++ head/sys/dev/mmc/mmcsd.c Tue Jul 9 03:00:06 2013 (r253054) @@ -199,7 +199,8 @@ mmcsd_attach(device_t dev) sc->running = 1; sc->suspend = 0; sc->eblock = sc->eend = 0; - kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card"); + kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card", + device_get_nameunit(dev)); return (0); } @@ -260,7 +261,8 @@ mmcsd_resume(device_t dev) if (sc->running <= 0) { sc->running = 1; MMCSD_UNLOCK(sc); - kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card"); + kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card", + device_get_nameunit(dev)); } else MMCSD_UNLOCK(sc); return (0);