From nobody@FreeBSD.org  Thu Apr  3 13:47:18 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D519C106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2008 13:47:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BFB708FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2008 13:47:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m33DlDpf012037
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Apr 2008 13:47:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m33DlDSu012036;
	Thu, 3 Apr 2008 13:47:13 GMT
	(envelope-from nobody)
Message-Id: <200804031347.m33DlDSu012036@www.freebsd.org>
Date: Thu, 3 Apr 2008 13:47:13 GMT
From: Anatoly Borodin <anatoly.borodin@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "mount -ur" doesn't work good
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122414
>Category:       bin
>Synopsis:       mount(8): "mount -ur" doesn't work well
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 13:50:02 UTC 2008
>Closed-Date:    Tue Apr 08 20:30:18 UTC 2008
>Last-Modified:  Tue Apr 08 20:30:18 UTC 2008
>Originator:     Anatoly Borodin
>Release:        7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD fractal.home 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Mar 29 17:44:33 EET 2008     anatoly.borodin@gmail.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I use /storage for media storage (mp3 etc):
/dev/ad4s2a             /storage                ufs     ro,acls            2 2
# df /storage/
Filesystem     Size    Used   Avail Capacity iused    ifree %iused  Mounted on
/dev/ad4s2a    116G     61G     46G    57%   10692 15745594    0%   /storage

This partition is being mostly ro. When I need to put some files on it,
I use mount -uw /storage. But after some big updates (file copy/move/edit
mp3 tags, ~100Mb) the file system doesn't want to go back ro. mount -ur
/storage gives:

mount: /dev/ad4s2a : Device busy

and dmesg says:

softdep_waitidle: Failed to flush worklist for 0xc4c8da70

After reboot the filesystem is marked as not clean an is being fsck'ed.
The files on it are rather ok IMHO.

# tunefs -p /storage
tunefs: ACLs: (-a)                                         enabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: gjournal: (-J)                                     disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Tue Apr 8 20:29:56 UTC 2008 
State-Changed-Why:  

DUP of PR kern/121809 

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