diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-04-26 11:36:37 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-26 11:36:37 -0400 |
commit | 968c49641338f4fb71d35352d49b1d25a68c5e93 (patch) | |
tree | fbff834006b20bfac4af6dbc70b951a31bc2f3af /drivers/ide/ide-cd.h | |
parent | 9841654949f0a3f1289b6b95b2ab56cd99fb5360 (diff) |
ide-cd: remove the internal 64k buffer
This removes the internal ide-cd buffer and falls back to read-ahead block layer
capabilities. Thorough testing (cd burning, dvd read, raw read) gives with the
bufferless mode marginally better performance in addition to simplified code.
bufferless:
dd: reading `/dev/hdc': Input/output error
6238+0 records in
6238+0 records out
204406784 bytes (204 MB) copied, 259.891 s, 787 kB/s
real 4m21.598s
user 0m0.014s
sys 0m0.744s
with the old buffer (2.6.25-rc1):
dd: reading `/dev/hdc': Input/output error
6238+0 records in
6238+0 records out
204406784 bytes (204 MB) copied, 262.893 s, 778 kB/s
real 4m22.938s
user 0m0.009s
sys 0m0.771s
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.h')
-rw-r--r-- | drivers/ide/ide-cd.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h index 22e3751a681e..a58801c4484d 100644 --- a/drivers/ide/ide-cd.h +++ b/drivers/ide/ide-cd.h | |||
@@ -119,10 +119,6 @@ struct cdrom_info { | |||
119 | 119 | ||
120 | struct atapi_toc *toc; | 120 | struct atapi_toc *toc; |
121 | 121 | ||
122 | unsigned long sector_buffered; | ||
123 | unsigned long nsectors_buffered; | ||
124 | unsigned char *buffer; | ||
125 | |||
126 | /* The result of the last successful request sense command | 122 | /* The result of the last successful request sense command |
127 | on this device. */ | 123 | on this device. */ |
128 | struct request_sense sense_data; | 124 | struct request_sense sense_data; |