diff options
author | Kent Overstreet <kmo@daterainc.com> | 2014-02-07 13:53:46 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-07 13:54:08 -0700 |
commit | 5cb8850c9c4a7605f74f5c9c7ecadd0b02e87a25 (patch) | |
tree | 401b42c4f5898a54c11c36da7ac37a14479bfffe /Kconfig | |
parent | 087787959ce851d7bbb19f10f6e9241b7f85a3ca (diff) | |
download | blackbird-op-linux-5cb8850c9c4a7605f74f5c9c7ecadd0b02e87a25.tar.gz blackbird-op-linux-5cb8850c9c4a7605f74f5c9c7ecadd0b02e87a25.zip |
block: Explicitly handle discard/write same segments
Immutable biovecs changed the way biovecs are interpreted - drivers no
longer use bi_vcnt, they have to go by bi_iter.bi_size (to allow for
using part of an existing segment without modifying it).
This breaks with discards and write_same bios, since for those bi_size
has nothing to do with segments in the biovec. So for now, we need a
fairly gross hack - we fortunately know that there will never be more
than one segment for the entire request, so we can special case
discard/write_same.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Tested-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions