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)
commit79eb63e9e5875b84341a3a05f8e6ae9cdb4bb6f6
treebdadc2037c1d0f24c6c73b71ae82fdd7b907e610
parentbc38bf106c967389a465d926be22c7371abba69d
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