提交 f71eee8a 编写于 作者: Y Yufen Yu 提交者: Zheng Zengkai

Revert "scsi: megaraid_sas: Replace undefined MFI_BIG_ENDIAN macro with...

Revert "scsi: megaraid_sas: Replace undefined MFI_BIG_ENDIAN macro with __BIG_ENDIAN_BITFIELD macro"

This reverts commit b9d5e3e7.

After commit a7faf81d ("scsi: megaraid_sas: Set no_write_same only
for Virtual Disk"), write_same is support default for some devices.
But we found write zero IO is very slow. So, revert it.
Signed-off-by: NYufen Yu <yuyufen@huawei.com>
Reviewed-by: NJason Yan <yanaijie@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f8a28dd2
...@@ -511,7 +511,7 @@ union MR_PROGRESS { ...@@ -511,7 +511,7 @@ union MR_PROGRESS {
*/ */
struct MR_PD_PROGRESS { struct MR_PD_PROGRESS {
struct { struct {
#ifndef __BIG_ENDIAN_BITFIELD #ifndef MFI_BIG_ENDIAN
u32 rbld:1; u32 rbld:1;
u32 patrol:1; u32 patrol:1;
u32 clear:1; u32 clear:1;
...@@ -537,7 +537,7 @@ struct MR_PD_PROGRESS { ...@@ -537,7 +537,7 @@ struct MR_PD_PROGRESS {
}; };
struct { struct {
#ifndef __BIG_ENDIAN_BITFIELD #ifndef MFI_BIG_ENDIAN
u32 rbld:1; u32 rbld:1;
u32 patrol:1; u32 patrol:1;
u32 clear:1; u32 clear:1;
......
...@@ -774,7 +774,7 @@ struct MR_SPAN_BLOCK_INFO { ...@@ -774,7 +774,7 @@ struct MR_SPAN_BLOCK_INFO {
struct MR_CPU_AFFINITY_MASK { struct MR_CPU_AFFINITY_MASK {
union { union {
struct { struct {
#ifndef __BIG_ENDIAN_BITFIELD #ifndef MFI_BIG_ENDIAN
u8 hw_path:1; u8 hw_path:1;
u8 cpu0:1; u8 cpu0:1;
u8 cpu1:1; u8 cpu1:1;
...@@ -866,7 +866,7 @@ struct MR_LD_RAID { ...@@ -866,7 +866,7 @@ struct MR_LD_RAID {
__le16 seqNum; __le16 seqNum;
struct { struct {
#ifndef __BIG_ENDIAN_BITFIELD #ifndef MFI_BIG_ENDIAN
u32 ldSyncRequired:1; u32 ldSyncRequired:1;
u32 regTypeReqOnReadIsValid:1; u32 regTypeReqOnReadIsValid:1;
u32 isEPD:1; u32 isEPD:1;
...@@ -889,7 +889,7 @@ struct { ...@@ -889,7 +889,7 @@ struct {
/* 0x30 - 0x33, Logical block size for the LD */ /* 0x30 - 0x33, Logical block size for the LD */
u32 logical_block_length; u32 logical_block_length;
struct { struct {
#ifndef __BIG_ENDIAN_BITFIELD #ifndef MFI_BIG_ENDIAN
/* 0x34, P_I_EXPONENT from READ CAPACITY 16 */ /* 0x34, P_I_EXPONENT from READ CAPACITY 16 */
u32 ld_pi_exp:4; u32 ld_pi_exp:4;
/* 0x34, LOGICAL BLOCKS PER PHYSICAL /* 0x34, LOGICAL BLOCKS PER PHYSICAL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册