]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
don't rely upon subsequent bio_add_pc_page() calls failing
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Sep 2017 20:16:06 +0000 (16:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Oct 2017 21:23:38 +0000 (17:23 -0400)
commite2e115d18b76467274d8f818f8828ba168f9c80b
tree755fcb8bc56789ea6db0dc1316bdec8298cf1505
parent629e42bcc3d0bc04b4e0e40ef3f831507a4693bd
don't rely upon subsequent bio_add_pc_page() calls failing

... they might actually succeed in some cases (when we are at the
queue-imposed segments limit, the next page is not mergable with
the last one we'd got in, but the first page covered by the next
iovec *is* mergable).  Make sure that once it's failed, we are
done with that bio.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/bio.c