]> git.karo-electronics.de Git - karo-tx-linux.git/commit
A recent patch to fix the dm cache target's writethrough mode extended
authorMike Snitzer <snitzer@redhat.com>
Wed, 3 Apr 2013 22:52:22 +0000 (09:52 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Apr 2013 22:53:04 +0000 (09:53 +1100)
commit6cd02987a8e62bd20e0c3fab3068f5a534cdf654
tree01aa87933bf3da61093ba84774622d77d65aeae8
parent30deef707cf3fea3eeb73eaa4c6da6d3b8ebff75
A recent patch to fix the dm cache target's writethrough mode extended
the bio's front_pad to include a 1056-byte struct dm_bio_details.
Writeback mode doesn't need this, so this patch reduces the
per_bio_data_size to 16 bytes in this case instead of 1096.

The dm_bio_details structure was added in "dm cache: fix writes to
cache device in writethrough mode" which fixed commit e2e74d617e ("dm
cache: fix race in writethrough implementation").  In writeback mode
we avoid allocating the writethrough-specific members of the
per_bio_data structure (the dm_bio_details structure included).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-cache-target.c