]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: add a plugging callback to raid56 writes
authorChris Mason <chris.mason@fusionio.com>
Thu, 31 Jan 2013 19:42:28 +0000 (14:42 -0500)
committerChris Mason <chris.mason@fusionio.com>
Fri, 1 Feb 2013 19:24:24 +0000 (14:24 -0500)
commit6ac0f4884eaad28441c6e0f9d1400a08c2149049
tree251d86c33360948671a1b4d8cb5a38a5724468a6
parent4ae10b3a133e1147f3c818fe2ebaf005b217b7bf
Btrfs: add a plugging callback to raid56 writes

Buffered writes and DIRECT_IO writes will often break up
big contiguous changes to the file into sub-stripe writes.

This adds a plugging callback to gather those smaller writes full stripe
writes.

Example on flash:

fio job to do 64K writes in batches of 3 (which makes a full stripe):

With plugging: 450MB/s
Without plugging: 220MB/s

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/raid56.c