diff options
author | Brian Behlendorf <[email protected]> | 2012-11-08 14:18:22 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-11-09 12:24:51 -0800 |
commit | e26ade5101ba1d8e8350ff1270bfca4258e1ffe3 (patch) | |
tree | 7d7642323fa0fa7e18e0d875986c9b2e8b80b512 /man | |
parent | bbf8c748051294b104678f101ba1162632099b07 (diff) |
Fix zvol+btrfs hang
When using a zvol to back a btrfs filesystem the btrfs mount
would hang. This was due to the bio completion callback used
in btrfs assuming that lower level drivers would never modify
the bio->bi_io_vecs after they were submitted via bio_submit().
If they are modified btrfs will miscalculate which pages need
to be unlocked resulting in a hang.
It's worth mentioning that other file systems such as ext[234]
and xfs work fine because they do not make the same assumption
in the bio completion callback.
The most straight forward way to fix the issue is to present
the semantics expected by btrfs. This is done by cloning the
bios attached to each request and then using the clones bvecs
to perform the required accounting. The clones are freed after
each read/write and the original unmodified bios are linked back
in to the request.
Signed-off-by: Chris Wedgwood <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #469
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions