First patch is about returning failure (rather than success) when max_append_sectors is 0. This prevents bio_iov_iter_get_pages() from getting into an endless loop.
Second patch enables issuing zone-append with iov_iter of bvec type. It adds a helper which is similar to __bio_iov_bvec_add_pages() but takes zone-append limits into account. Kanchan Joshi (2): block: fix error code for zone-append block: enable zone-append for iov_iter of bvec type block/bio.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) -- 2.7.4