From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: switch loop and target to use ITER_BVEC iov_iter V2 Date: Sun, 25 Jan 2015 21:11:57 +0100 Message-ID: <1422216722-27786-1-git-send-email-hch@lst.de> Cc: Jens Axboe , Nicholas Bellinger , Ming Lei , linux-fsdevel@vger.kernel.org, target-devel@vger.kernel.org To: Al Viro Return-path: Sender: target-devel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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