All of lore.kernel.org
 help / color / mirror / Atom feed
* switch loop and target to use ITER_BVEC iov_iter V2
@ 2015-01-25 20:11 Christoph Hellwig
  2015-01-25 20:11 ` [PATCH 1/5] new helper: iov_iter_bvec() Christoph Hellwig
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Christoph Hellwig @ 2015-01-25 20:11 UTC (permalink / raw)
  To: Al Viro
  Cc: Jens Axboe, Nicholas Bellinger, Ming Lei, linux-fsdevel, target-devel

This series adds two new helpers to easily read from and write to
arbitrary iov_iter structures and switches the loop driver and target file
backend to use those with bio_vecs.

Using bio_vecs directly avoids the need to kmap individual elements in
the callers, which is epecially important in the target driver, and also
gets rid of the horrible splice code abuse hack in the loop driver.

Changes since V1:
	- rebase ontop of viro/for-next
	- changed the helpers to read/write any iov_iter, and use
	  iov_iter_bvec to build those
	- return -EINVAL if ->read_iter/->write_iter aren't present
	  instead of -EBADFD
	- use kcalloc in the target patch
	- add a patch to rewrite the target WRITE SAME emulation

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

end of thread, other threads:[~2015-01-26  5:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 20:11 switch loop and target to use ITER_BVEC iov_iter V2 Christoph Hellwig
2015-01-25 20:11 ` [PATCH 1/5] new helper: iov_iter_bvec() Christoph Hellwig
2015-01-25 20:11 ` [PATCH 2/5] fs: add vfs_iter_{read,write} helpers Christoph Hellwig
2015-01-25 20:12 ` [PATCH 3/5] loop: convert to vfs_iter_read/write Christoph Hellwig
2015-01-25 20:12 ` [PATCH 4/5] target: use vfs_iter_read/write in fd_do_rw Christoph Hellwig
2015-01-25 20:12 ` [PATCH 5/5] target: rewrite fd_execute_write_same Christoph Hellwig
2015-01-26  5:10 ` switch loop and target to use ITER_BVEC iov_iter V2 Al Viro

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.