[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix multi-page I/O accesses in the blkback driver in cases where we
ChangeSet 1.1866, 2005/05/16 21:21:34+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx Fix multi-page I/O accesses in the blkback driver in cases where we receive partial-completion callbacks. Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> blkback.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c --- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-05-16 17:05:47 -04:00 +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-05-16 17:05:47 -04:00 @@ -252,8 +252,9 @@ #else static int end_block_io_op(struct bio *bio, unsigned int done, int error) { - if ( done || error ) - __end_block_io_op(bio->bi_private, (done && !error)); + if ( bio->bi_size != 0 ) + return 1; + __end_block_io_op(bio->bi_private, !error); bio_put(bio); return error; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |