[PATCH] block: Make write_hints[] big enough

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just stumbled over this.
Looks like the write hints array in the request queue is not allotted
with the required space to accommodate all the write hint types.

fixes: f793dfd3f39a (blk-mq: expose write hints through debugfs)

Signed-off-by: Avri Altman <avri.altman@xxxxxxx>
---
 include/linux/blkdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index d6869e0..0c8010d 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -665,7 +665,7 @@ struct request_queue {
 
 	struct work_struct	release_work;
 
-#define BLK_MAX_WRITE_HINTS	5
+#define BLK_MAX_WRITE_HINTS	6
 	u64			write_hints[BLK_MAX_WRITE_HINTS];
 };
 
-- 
1.9.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux