bcache: Fix merge_bvec_fn usage for when it modifies the bvm
authorKent Overstreet <koverstreet@google.com>
Mon, 22 Apr 2013 21:44:24 +0000 (14:44 -0700)
committerKent Overstreet <koverstreet@google.com>
Mon, 22 Apr 2013 21:44:24 +0000 (14:44 -0700)
commita09ded8edf9ed4009930713e101249084cbcea5c
treee0a451f20434c8a0bfc28a36421d1b025be6dad5
parent1545f13730be43278ce12f4af7e51b4dee5066a8
bcache: Fix merge_bvec_fn usage for when it modifies the bvm

Stacked md devices reuse the bvm for the subordinate device, causing
problems...

Reported-by: Michael Balser <michael.balser@profitbricks.com>
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/io.c