bcache/md: Use raid stripe size
authorKent Overstreet <kmo@daterainc.com>
Fri, 12 Jul 2013 05:39:53 +0000 (22:39 -0700)
committerKent Overstreet <kmo@daterainc.com>
Wed, 8 Jan 2014 21:05:09 +0000 (13:05 -0800)
commitc78afc6261b09f74abff8c0719b80692a4959768
tree4b3d5e421fad23e3bd0866a0b18c845acf297506
parent5f5837d2d650db25b9153b91535e67a96b265f58
bcache/md: Use raid stripe size

Now that we've got code for raid5/6 stripe awareness, bcache just needs
to know about the stripes and when writing partial stripes is expensive
- we probably don't want to enable this optimization for raid1 or 10,
even though they have stripes. So add a flag to queue_limits.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
block/blk-settings.c
drivers/md/bcache/super.c
drivers/md/raid5.c
include/linux/blkdev.h