-
- Downloads
block: Clean up special command handling logic
Remove special-casing of non-rw fs style requests (discard). The nomerge flags are consolidated in blk_types.h, and rq_mergeable() and bio_mergeable() have been modified to use them. bio_is_rw() is used in place of bio_has_data() a few places. This is done to to distinguish true reads and writes from other fs type requests that carry a payload (e.g. write same). Signed-off-by:Martin K. Petersen <martin.petersen@oracle.com> Acked-by:
Mike Snitzer <snitzer@redhat.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/blk-core.c 6 additions, 7 deletionsblock/blk-core.c
- block/blk-merge.c 1 addition, 21 deletionsblock/blk-merge.c
- block/blk.h 2 additions, 3 deletionsblock/blk.h
- block/elevator.c 2 additions, 4 deletionsblock/elevator.c
- include/linux/bio.h 21 additions, 2 deletionsinclude/linux/bio.h
- include/linux/blk_types.h 4 additions, 0 deletionsinclude/linux/blk_types.h
- include/linux/blkdev.h 10 additions, 12 deletionsinclude/linux/blkdev.h
Loading
Please register or sign in to comment