CHROMIUM: md: dm-bootcache: reinitialize bio structure
authorPaul Taysom <taysom@chromium.org>
Thu, 25 Apr 2013 00:19:58 +0000 (17:19 -0700)
committerChromeBot <chrome-bot@google.com>
Mon, 29 Apr 2013 22:19:39 +0000 (15:19 -0700)
commit652c26eda1f0de21c65ddb9e538b9592681c3da5
treeca0928a1d114fde8a18b135df032781bad52b0ef
parent64b7896dce7f07a161e893d99fd6a3e0c73c9e4f
CHROMIUM: md: dm-bootcache: reinitialize bio structure

The bootcache code does multiple large reads and was reusing the bio structure.
Some device drivers appear to leave some clutter in the bio structure.
Between large reads, the bootcache now frees and reallocates the bio structure.

BUG=chrome-os-partner:18830
TEST=POWER-ESC-F3 with USB stick, several times.
Signed-off-by: Paul Taysom <taysom@chromium.org>
Change-Id: I5b835b5f0606f6eb4116fc9719d96a48d0155f57
Reviewed-on: https://gerrit.chromium.org/gerrit/49121
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Paul Taysom <taysom@chromium.org>
Commit-Queue: Paul Taysom <taysom@chromium.org>
drivers/md/dm-bootcache.c