Skip to content
  • Konstantin Belousov's avatar
    ufs: apply suspension for non-forced rw unmounts. · 71f26429
    Konstantin Belousov authored
    Forced rw unmounts and remounts from rw to ro already suspend
    filesystem, which closes races with writers instantiating new vnodes
    while unmount flushes the queue.  Original intent of not including
    non-forced unmounts into this regime was to allow such unmounts to
    fail if writer was active, but this did not worked well.
    
    Similar change, but causing all unmount, even involving only ro
    filesystem, were proposed in D24088, but I believe that suspending ro
    is undesirable, and definitely spends CPU time.
    
    Reported by:	markj
    Discussed with:	chs, mckusick
    Tested by:	pho
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    71f26429