]> git.baikalelectronics.ru Git - kernel.git/commit
block: make blk_rq_map_user take a NULL user-space buffer
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 2 Sep 2008 07:20:19 +0000 (16:20 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:11 +0000 (08:56 +0200)
commit566a5489a7a4174222becefdff9bf489ecec9a95
tree694d09728733e65d604bf3e1f13679db73fc1d9a
parent6e45156b33f99da7a419bb0df4d6c76c5fb68feb
block: make blk_rq_map_user take a NULL user-space buffer

This patch changes blk_rq_map_user to accept a NULL user-space buffer
with a READ command if rq_map_data is not NULL. Thus a caller can pass
page frames to lk_rq_map_user to just set up a request and bios with
page frames propely. bio_uncopy_user (called via blk_rq_unmap_user)
doesn't copy data to user space with such request.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-map.c
fs/bio.c
include/linux/bio.h