# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.578 -> 1.579 # include/linux/nbd.h 1.10 -> 1.11 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/09/19 axboe@burns.home.kernel.dk 1.579 # nbd bio_endio() completion stuff # -------------------------------------------- # diff -Nru a/include/linux/nbd.h b/include/linux/nbd.h --- a/include/linux/nbd.h Thu Sep 19 07:39:12 2002 +++ b/include/linux/nbd.h Thu Sep 19 07:39:12 2002 @@ -59,7 +59,7 @@ blk_finished_io(nsect); req->bio = bio->bi_next; bio->bi_next = NULL; - bio_endio(bio, uptodate); + bio_endio(bio, nsect << 9, uptodate ? 0 : -EIO); } blk_put_request(req); spin_unlock_irqrestore(q->queue_lock, flags);