diff options
author | Shaohua Li | 2016-12-13 21:40:15 +0100 |
---|---|---|
committer | Shaohua Li | 2016-12-13 21:40:15 +0100 |
commit | 20737738d397dfadbca1ea50dcc00d7259f500cf (patch) | |
tree | 5765b1815331bac9ca32208963c850e60806d6de /include/uapi | |
parent | Merge tag 'char-misc-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
parent | md: separate flags for superblock changes (diff) | |
download | kernel-qcow2-linux-20737738d397dfadbca1ea50dcc00d7259f500cf.tar.gz kernel-qcow2-linux-20737738d397dfadbca1ea50dcc00d7259f500cf.tar.xz kernel-qcow2-linux-20737738d397dfadbca1ea50dcc00d7259f500cf.zip |
Merge branch 'md-next' into md-linus
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/raid/md_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h index c3e654c6d518..9930f3e9040f 100644 --- a/include/uapi/linux/raid/md_p.h +++ b/include/uapi/linux/raid/md_p.h @@ -84,6 +84,10 @@ #define MD_DISK_CANDIDATE 5 /* disk is added as spare (local) until confirmed * For clustered enviroments only. */ +#define MD_DISK_FAILFAST 10 /* Send REQ_FAILFAST if there are multiple + * devices available - and don't try to + * correct read errors. + */ #define MD_DISK_WRITEMOSTLY 9 /* disk is "write-mostly" is RAID1 config. * read requests will only be sent here in @@ -265,8 +269,9 @@ struct mdp_superblock_1 { __le32 dev_number; /* permanent identifier of this device - not role in raid */ __le32 cnt_corrected_read; /* number of read errors that were corrected by re-writing */ __u8 device_uuid[16]; /* user-space setable, ignored by kernel */ - __u8 devflags; /* per-device flags. Only one defined...*/ + __u8 devflags; /* per-device flags. Only two defined...*/ #define WriteMostly1 1 /* mask for writemostly flag in above */ +#define FailFast1 2 /* Should avoid retries and fixups and just fail */ /* Bad block log. If there are any bad blocks the feature flag is set. * If offset and size are non-zero, that space is reserved and available */ |