]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fixup blk_rq_unmap_user() API
authorJens Axboe <jens.axboe@oracle.com>
Tue, 19 Dec 2006 10:12:46 +0000 (11:12 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Dec 2006 10:12:46 +0000 (11:12 +0100)
commit8187622d97a9494e06b850e06de94d49cd09da98
tree7be7c45168af77518bd6a47601e2f9e31b967dba
parent1419212e13fb8042c5326a2ab793e520ca23db04
[PATCH] Fixup blk_rq_unmap_user() API

The blk_rq_unmap_user() API is not very nice. It expects the caller to
know that rq->bio has to be reset to the original bio, and it will
silently do nothing if that is not done. Instead make it explicit that
we need to pass in the first bio, by expecting a bio argument.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ll_rw_blk.c
block/scsi_ioctl.c
drivers/cdrom/cdrom.c
include/linux/blkdev.h