OSDN Git Service

ubd: remove use of blk_rq_map_sg
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 20:55:03 +0000 (22:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Oct 2018 21:13:12 +0000 (15:13 -0600)
commitecb0a83e3198f2c1142901687afacbc73602a13b
tree2d1e20cff768512492dd4e37dfc6aad2098eaca4
parent6956b956934f10c19eca2a1d44f50a3bee860531
ubd: remove use of blk_rq_map_sg

There is no good reason to create a scatterlist in the ubd driver,
it can just iterate the request directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[rw: Folded in improvements as discussed with hch and jens]
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/um/drivers/ubd_kern.c