• Christoph Hellwig's avatar
    [PATCH] fix sd medium removal handling · 3e5edf7c
    Christoph Hellwig authored
    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.
    3e5edf7c
sd.c 41.1 KB