DragonFly BSD
DragonFly commits List (threaded) for 2012-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_3_0 kernel -- FFS: Take softdep lock in softdep_disk_io_initiation.


From: Venkatesh Srinivas <vsrinivas@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 Apr 2012 10:43:40 -0700 (PDT)

commit 7b7fca2992a0ab00710ccd9cc09a3b479c9cb613
Author: Venkatesh Srinivas <me@endeavour.zapto.org>
Date:   Mon Apr 2 10:02:25 2012 -0700

    kernel -- FFS: Take softdep lock in softdep_disk_io_initiation.
    
    softdep_disk_io_initiation was using the mplock rather than the softdep
    lock to protect the softdep work queue and items on it. Take the softdep
    lock and allow it to be taken recursively, so that io_start bioops can
    call into other parts of softdep. Prevents softdep completion callback
    from racing softdep_disk_io_initiation, remaining panics of 2291.
    
    Eventually the MPLOCK in the bio_ops callback can go away, but that will
    require more testing.
    
    Closes-bug: 2291

Summary of changes:
 sys/vfs/ufs/ffs_softdep.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b7fca2992a0ab00710ccd9cc09a3b479c9cb613


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]