drbd: don't BUG_ON, if bio_add_page of a single page to an empty bio fails
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 24 Jan 2011 13:47:09 +0000 (14:47 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:48:10 +0000 (11:48 +0100)
commit10f6d9926cd17afff9dc03c967706419798b4929
tree7b1cd4bfcffbb3832c756ce29861411f7300aadd
parent039312b6481e2928f3be19fee94c83327d93e4c7
drbd: don't BUG_ON, if bio_add_page of a single page to an empty bio fails

Just deal with it more gracefully, if we fail to add even a single page
to an empty bio. We used to BUG_ON() there, but it has been observed in
some Xen deployment, so we need to handle that case more robustly now.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_worker.c