]> git.baikalelectronics.ru Git - kernel.git/commit
[BLOCK] blk_rq_map_sg: force clear termination bit
authorJens Axboe <jens.axboe@oracle.com>
Tue, 23 Oct 2007 07:49:25 +0000 (09:49 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 23 Oct 2007 07:49:25 +0000 (09:49 +0200)
commitb8479a21387878791305579ef6100741efd81440
tree93a3991d5ab854fce477d9e28e55b720fd6ac81a
parent6d5008b11c34545f7f41b1e61252874703dd3cfe
[BLOCK] blk_rq_map_sg: force clear termination bit

Since blk_rq_map_sg() sets the termination bit at the end of the sg
table, we could see it prematurely on the next mapping unless we
force drivers to do a full sg_init_table() prior to each mapping. So
force clear the termination bit to avoid having to put that clear in
the driver for every mapping.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ll_rw_blk.c