scsi_cd - don't lock tray on cdcheckmedia()
authorAlex Hornung <ahornung@gmail.com>
Wed, 29 Feb 2012 19:53:07 +0000 (19:53 +0000)
committerAlex Hornung <ahornung@gmail.com>
Wed, 29 Feb 2012 20:06:07 +0000 (20:06 +0000)
commitc9639e633d35eefcd6be19a103f219fd08804870
tree89c03e1675ab1bc20ec806d0a748585c8fd98a98
parent71920ddbfafa6ebd2812dc32ea61f7d69c05175b
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@>
sys/bus/cam/scsi/scsi_cd.c