Files
linux-legacy/include/linux
FUJITA Tomonori 7a85f8896f block: restore the meaning of rq->data_len to the true data length
The meaning of rq->data_len was changed to the length of an allocated
buffer from the true data length. It breaks SG_IO friends and
bsg. This patch restores the meaning of rq->data_len to the true data
length and adds rq->extra_len to store an extended length (due to
drain buffer and padding).

This patch also removes the code to update bio in blk_rq_map_user
introduced by the commit 40b01b9bbd.
The commit adjusts bio according to memory alignment
(queue_dma_alignment). However, memory alignment is NOT padding
alignment. This adjustment also breaks SG_IO friends and bsg. Padding
alignment needs to be fixed in a proper way (by a separate patch).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
2008-03-04 11:17:11 +01:00
..
…
…
…
…
…
…
…
…
…
2008-02-14 21:17:08 -08:00
…
…
…
2008-02-20 20:11:49 -05:00
2008-02-10 18:11:16 -05:00
…
…
…
…
…
…
…
2008-02-19 10:04:00 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-19 10:04:00 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-23 17:13:24 -08:00
…
…
…
…
…
…
…
2008-02-14 20:58:05 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:24 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-19 10:04:00 +01:00
…
…
…
…
…
…
2008-02-11 13:01:51 +01:00
…
…
…
…
…
…
…
…
…
2008-02-13 16:21:18 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-11 09:20:50 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-19 21:00:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-13 16:21:18 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:29 -08:00
2008-02-19 01:41:26 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-13 16:21:18 -08:00
…
…
…
…
…
…
…
…
…
…
2008-02-26 14:03:47 +09:00
…
…
…
2008-02-23 17:12:14 -08:00
…
…
…
…
…
2008-03-03 12:22:30 -08:00
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:31 -08:00
…
…
2008-02-14 21:13:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-14 21:13:33 -08:00
2008-02-10 12:52:46 -08:00
…
2008-02-07 23:11:56 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:31 -08:00
…
…
2008-02-08 09:22:26 -08:00
…
…
…
…
…
…
…
…
2008-02-08 09:22:41 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:41 -08:00
2008-02-08 09:22:27 -08:00
…
2008-03-03 12:22:32 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:31 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-08 09:22:34 -08:00
2008-02-08 09:22:36 -08:00
…
…
…
…
…
…
2008-03-03 10:47:14 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…