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

Alex Hornung alexh at crater.dragonflybsd.org
Wed Feb 29 12:06:34 PST 2012


commit c9639e633d35eefcd6be19a103f219fd08804870
Author: Alex Hornung <ahornung at 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





More information about the Commits mailing list