diff options
author | Jens Axboe <axboe@suse.de> | 2006-07-28 08:54:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-07-28 08:54:59 +0200 |
commit | 361934849e9c0418950bedf667732f36337d88b9 (patch) | |
tree | a2f7d53d3ddf75c19421f972a03a44da00df0396 /drivers/ide/ide-disk.c | |
parent | 64821324ca49f24be1a66f2f432108f96a24e596 (diff) | |
download | kernel_samsung_tuna-361934849e9c0418950bedf667732f36337d88b9.zip kernel_samsung_tuna-361934849e9c0418950bedf667732f36337d88b9.tar.gz kernel_samsung_tuna-361934849e9c0418950bedf667732f36337d88b9.tar.bz2 |
[PATCH] ide: option to disable cache flushes for buggy drives
Some drives claim they support cache flushing, but get seriously
confused if you try. Add this option to be able to boot with
barriers enabled by default.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index f712e4c..7cf3eb0 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c @@ -776,7 +776,7 @@ static void update_ordered(ide_drive_t *drive) * not available so we don't need to recheck that. */ capacity = idedisk_capacity(drive); - barrier = ide_id_has_flush_cache(id) && + barrier = ide_id_has_flush_cache(id) && !drive->noflush && (drive->addressing == 0 || capacity <= (1ULL << 28) || ide_id_has_flush_cache_ext(id)); |