Commit 7a650c81 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] ide-cd invalidate toc cache on last close

Make sure that TOC gets reloaded after every last close of the device.
parent ae3071ba
......@@ -2860,6 +2860,10 @@ int ide_cdrom_open_real (struct cdrom_device_info *cdi, int purpose)
static
void ide_cdrom_release_real (struct cdrom_device_info *cdi)
{
ide_drive_t *drive = cdi->handle;
if (!cdi->use_count)
CDROM_STATE_FLAGS(drive)->toc_valid = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment