[PATCH] Avoid unnecessary ide-cd cache flushes
authorJens Axboe <axboe@suse.de>
Sun, 1 May 2005 19:12:52 +0000 (12:12 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 19:12:52 +0000 (12:12 -0700)
commit7da21a02b3587157bd43910ea6d4c76661228ebb
tree192ac868b9d0854d31fb04a21a968796892cbf94
parent76530da1a9e8ce05963b1f49a098eddc6ec6c534
[PATCH] Avoid unnecessary ide-cd cache flushes

Only issue a cdrom cache flush if we've done write to the drive.  The
->media_written() flag keeps track of that.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/cdrom.c