All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] block: adds padding support to blk_rq_map_user_iov
@ 2008-04-10 14:17 FUJITA Tomonori
  2008-04-10 14:17 ` [PATCH 1/3] block: convert bio_copy_user to bio_copy_user_iov FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: FUJITA Tomonori @ 2008-04-10 14:17 UTC (permalink / raw)
  To: linux-scsi
  Cc: Tejun Heo, Mike Christie, James Bottomley, Jens Axboe,
	FUJITA Tomonori

As discussed [*1], blk_rq_map_user_iov path is broken regarding
padding at the moment. In 2.6.24, libata did padding but libata's
padding code was removed and now libata expects the block layer to do
that.

blk_rq_map_user does padding but blk_rq_map_user_iov doesn't so
blk_rq_map_user_iov doesn't work in case libata needs padding (so far
nobody has complained, maybe nobody uses blk_rq_map_user_iov
interface).

This patchset adds padding support to blk_rq_map_user_iov. I converted
convert bio_copy_user to bio_copy_user_iov, which uses a temporary
kernel buffers.  blk_rq_map_user_iov uses bio_copy_user_iov when a low
level driver needs padding or a buffer in sg_iovec isn't aligned. We
can safely do padding in blk_rq_map_sg.

In the long run, I want to integrate several mapping APIs for PC
commands (and new API should be useful for sg/st/osst) but I need more
time to finish that work.

This is against the latest Linus tree. Can we merge this after 2.6.25?


[*1]
http://marc.info/?t=120716961000004&r=1&w=2



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-04-14 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 14:17 [PATCH 0/3] block: adds padding support to blk_rq_map_user_iov FUJITA Tomonori
2008-04-10 14:17 ` [PATCH 1/3] block: convert bio_copy_user to bio_copy_user_iov FUJITA Tomonori
2008-04-10 14:17   ` [PATCH 2/3] block: add bio_copy_user_iov support to blk_rq_map_user_iov FUJITA Tomonori
2008-04-10 14:17     ` [PATCH 3/3] block: move the padding adjustment to blk_rq_map_sg FUJITA Tomonori
2008-04-10 15:02       ` Boaz Harrosh
2008-04-11  5:43 ` [PATCH 0/3] block: adds padding support to blk_rq_map_user_iov Tejun Heo
2008-04-11 10:55 ` Jens Axboe
2008-04-11 14:57   ` FUJITA Tomonori
2008-04-14 17:55     ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.