FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

LinkBack Thread Tools
Old 07-27-2012, 05:25 AM
Dong Robin
Default Question about end_clone_bio()


There are codes in end_clone_bio():

static void end_clone_bio(struct bio *clone, int error)
* bios are processed from the head of the list.
* So the completing bio should always be rq->bio.
* If it's not, something wrong is happening.
if (tio->orig->bio != bio)
DMERR("bio completion is going in the middle of the request");

My question is: why the completing bio should always be rq->bio? If
the driver of a block device dispatchs all the bios belong to a
how should it make sure the first completing bio is the first bio in
bio list of request ?

Best Regard
Robin Dong

dm-devel mailing list

Thread Tools

All times are GMT. The time now is 09:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org