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

git: scsi_cd - don't lock tray on cdcheckmedia()


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Feb 2012 12:06:34 -0800 (PST)

commit c9639e633d35eefcd6be19a103f219fd08804870
Author: Alex Hornung <ahornung@gmail.com>
Date:   Wed Feb 29 19:53:07 2012 +0000

    scsi_cd - don't lock tray on cdcheckmedia()
    
     * Move the tray locking explicitly to cdopen(), so that it matches the
       unlocking in cdclose().
    
     * Before disk probing existed this wasn't a problem as every device was
       first opened, then operated on, then closed.
    
     * The disk probing code operates directly on the device, which caused
       it to be locked via cdcheckmedia() but never unlocked since no
       close() was ever called.
    
    Reported-by: Sascha Wildner <swildner@>

Summary of changes:
 sys/bus/cam/scsi/scsi_cd.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c9639e633d35eefcd6be19a103f219fd08804870


-- 
DragonFly BSD source repository



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