]> git.baikalelectronics.ru Git - kernel.git/commit
block: Add blk_make_request(), takes bio, returns a request
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 17 May 2009 15:57:15 +0000 (18:57 +0300)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 May 2009 10:14:56 +0000 (12:14 +0200)
commitd7089b88a492b65bd8d94c3468f93b58d88a266a
treebdadc2037c1d0f24c6c73b71ae82fdd7b907e610
parentfd7a8cf8df106eb270f639a59594b69de1209aa0
block: Add blk_make_request(), takes bio, returns a request

New block API:
given a struct bio allocates a new request. This is the parallel of
generic_make_request for BLOCK_PC commands users.

The passed bio may be a chained-bio. The bio is bounced if needed
inside the call to this member.

This is in the effort of un-exporting blk_rq_append_bio().

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
CC: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
include/linux/blkdev.h