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.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.c')
-rw-r--r-- | drivers/ide/ide.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 05fbd92..defd4b4 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c @@ -1539,7 +1539,7 @@ static int __init ide_setup(char *s) const char *hd_words[] = { "none", "noprobe", "nowerr", "cdrom", "serialize", "autotune", "noautotune", "minus8", "swapdata", "bswap", - "minus11", "remap", "remap63", "scsi", NULL }; + "noflush", "remap", "remap63", "scsi", NULL }; unit = s[2] - 'a'; hw = unit / MAX_DRIVES; unit = unit % MAX_DRIVES; @@ -1578,6 +1578,9 @@ static int __init ide_setup(char *s) case -10: /* "bswap" */ drive->bswap = 1; goto done; + case -11: /* noflush */ + drive->noflush = 1; + goto done; case -12: /* "remap" */ drive->remap_0_to_1 = 1; goto done; |