[PATCH] fix sd medium removal handling
sdev->access_count is incremented not only by sd but also e.g. by sg. Now if sd opens first, then sg, then sd closes and sg last medium removal will still be prevented. Add a counter in scsi_disk for doorlocking instead.
Showing
Please register or sign in to comment