DragonFly commits List (threaded) for 2012-02
git: scsi_cd - don't lock tray on cdcheckmedia()
Author: Alex Hornung <firstname.lastname@example.org>
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(-)
DragonFly BSD source repository