Some of our customers complain that, after burning a CD, it's not possible to proceed to mount it without ejecting it first. The problem is that the sr driver caches some information about the CD-ROM and doesn't update them after burning it, leading to a failure when the isofs filesystem tries to read the superblock. This patch modifies the sr driver so it detects the SG_IO write ioctls and marks the device as "changed". As a result, at the next open() syscall, the revalidate_block() callback will be executed and the sr driver will update its cached info. Is this patch acceptable to you? Do you have different ideas? Maurizio Lombardi (1): sr: mark device as changed when performing a write SG_IO operation drivers/scsi/sr.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- Maurizio Lombardi