From: Martin K. Petersen Date: Wed, 22 Sep 2010 19:33:37 +0000 (-0400) Subject: block: Disable autoprotect X-Git-Tag: v2.6.39-400.9.0~617 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=74043ae8aa0b1b0cb25eae99cb6c8ff3eb44a8a7;p=users%2Fjedix%2Flinux-maple.git block: Disable autoprotect Not all filesystems keep their pages stable during I/O leading to checksum failures. Disable automatic protection. Signed-off-by: Martin K. Petersen --- diff --git a/block/blk-integrity.c b/block/blk-integrity.c index 129b9e209a3b4..ad75541d85c57 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c @@ -401,7 +401,7 @@ int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) kobject_uevent(&bi->kobj, KOBJ_ADD); - bi->flags |= INTEGRITY_FLAG_READ | INTEGRITY_FLAG_WRITE; + bi->flags = 0; /* Disable checking by default */ bi->sector_size = queue_logical_block_size(disk->queue); disk->integrity = bi; } else