mbox series

[0/2] fix/extend zone-append in block-layer

Message ID 1593704330-11540-1-git-send-email-joshi.k@samsung.com (mailing list archive)
Headers show
Series fix/extend zone-append in block-layer | expand

Message

Kanchan Joshi July 2, 2020, 3:38 p.m. UTC
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(-)