From nobody@FreeBSD.org  Sun Oct 22 04:57:34 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A7B3616A47B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Oct 2006 04:57:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 386D943D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Oct 2006 04:57:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9M4vYk4068084
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Oct 2006 04:57:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9M4vXAO068058;
	Sun, 22 Oct 2006 04:57:33 GMT
	(envelope-from nobody)
Message-Id: <200610220457.k9M4vXAO068058@www.freebsd.org>
Date: Sun, 22 Oct 2006 04:57:33 GMT
From: Nikolay A Mirin<nik@optim.com.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: geli provider does not detach
X-Send-Pr-Version: www-3.0

>Number:         104669
>Category:       kern
>Synopsis:       geli provider does not detach
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 22 05:00:37 GMT 2006
>Closed-Date:    Sat Dec 02 09:08:33 GMT 2006
>Last-Modified:  Sat Dec 02 09:08:33 GMT 2006
>Originator:     Nikolay A Mirin
>Release:        6.2-PRERELEASE
>Organization:
N/A
>Environment:
FreeBSD xeon.optim-mol.cemu.ru 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #22: Sun Oct 22 02:21:09 MSD 2006     nik@xeon.optim-mol.cemu.ru:/usr/obj/usr/src/sys/XEON  i386

>Description:
"geli detach" does not finish. It freezes in g_wait state, according to top.
Seems to be the case of large partitions only ~100G.
256M flash drive worked OK.

I tried it on ATARAID-1, SCSI RAID-5 array, alone ATA drive,
doesn't work
>How-To-Repeat:
I guess, just make a geli provider, attach and detach it.
>Fix:
Well, do not really need to detach geli, unles I restart.
The restart still can be done with:
"reboot -q" or "reboot -q -n"
>Release-Note:
>Audit-Trail:

From: Nikolay Mirin <nik@optim.com.ru>
To: bug-followup@FreeBSD.org, pjd@FreeBSD.org
Cc:  
Subject: Re: kern/104669: geli provider does not detach
Date: Fri, 27 Oct 2006 00:39:14 -0500

 The solution is found!!!!
 
 The problem emerges on HyperThreaded or MultiCpu boxes. Single cpu are fine.
 So, I just set explicitly
 sysctl kern.geom.eli.threads=1
Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: Wed Nov 1 16:02:51 UTC 2006 
Responsible-Changed-Why:  
Let me take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104669 
State-Changed-From-To: open->patched 
State-Changed-By: pjd 
State-Changed-When: Wed Nov 1 16:03:12 UTC 2006 
State-Changed-Why:  
The problem was fixed in HEAD, will be MFCed in a week. 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104669 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/104669: commit references a PR
Date: Wed,  1 Nov 2006 16:05:39 +0000 (UTC)

 pjd         2006-11-01 16:05:07 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/geom/eli         g_eli.c 
   Log:
   Skip disabled CPU, because after we sched_bind() to a disabled CPU,
   we won't be able to exit from the thread.
   
   Function g_eli_cpu_is_disabled() stoled from kern_pmc.c.
   
   PR:             104669
   Reported by:    Nikolay Mirin <nik@optim.com.ru>
   MFC after:      1 week
   
   Revision  Changes    Path
   1.32      +16 -1     src/sys/geom/eli/g_eli.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/104669: commit references a PR
Date: Sat,  2 Dec 2006 08:49:53 +0000 (UTC)

 pjd         2006-12-02 08:49:40 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sys/geom/eli         g_eli.c 
   Log:
   MFC:    sys/geom/eli/g_eli.c    1.32,1.33
   
   Skip disabled CPU, because after we sched_bind() to a disabled CPU,
   we won't be able to exit from the thread.
   
   Function g_eli_cpu_is_disabled() stoled from kern_pmc.c.
   
   PR:             104669
   Reported by:    Nikolay Mirin <nik@optim.com.ru>
   
   Revision  Changes    Path
   1.3.2.13  +16 -1     src/sys/geom/eli/g_eli.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/104669: commit references a PR
Date: Sat,  2 Dec 2006 08:52:48 +0000 (UTC)

 pjd         2006-12-02 08:52:40 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6_2)
     sys/geom/eli         g_eli.c 
   Log:
   MFC:    sys/geom/eli/g_eli.c    1.32,1.33
   
   Skip disabled CPU, because after we sched_bind() to a disabled CPU,
   we won't be able to exit from the thread.
   
   Function g_eli_cpu_is_disabled() stoled from kern_pmc.c.
   
   PR:             kern/104669
   Reported by:    Nikolay Mirin <nik@optim.com.ru>
   Approved by:    re (kensmith)
   
   Revision      Changes    Path
   1.3.2.12.2.1  +16 -1     src/sys/geom/eli/g_eli.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: pjd 
State-Changed-When: Sat Dec 2 09:08:09 UTC 2006 
State-Changed-Why:  
Fix committed to RELENG_6/RELENG_6_2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104669 
>Unformatted:
