]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter: use bvec iterator to implement iterate_bvec()
authorMing Lei <ming.lei@canonical.com>
Mon, 30 May 2016 13:34:32 +0000 (21:34 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 9 Jun 2016 16:02:47 +0000 (10:02 -0600)
commitfc6952cecf593d0c467f6293ce82b122bd92799d
treeeb61e4844ee2862fc43d396645224da2fa6fd177
parent20ec0d4e76b2e9bacfb72f796b38d30562720211
iov_iter: use bvec iterator to implement iterate_bvec()

bvec has one native/mature iterator for long time, so not
necessary to use the reinvented wheel for iterating bvecs
in lib/iov_iter.c.

Two ITER_BVEC test cases are run:
- xfstest(-g auto) on loop dio/aio, no regression found
- swap file works well under extreme stress(stress-ng --all 64 -t
  800 -v), and lots of OOMs are triggerd, and the whole
system still survives

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
lib/iov_iter.c