2011/10/19 Praveen G K <praveen...@gmail.com>:
> Also, can somebody please tell me the significance of blk_end_request? Thanks.
> Why do we call this after every block read or write?

Because you want to update the struct request with the amount
written/read. If the entire
requested I/O range has been satiffied, blk_end_request also calls
blk_finish_request and
completes the request.

I/O is asynchronous - hence, you need to let whatever made the request
know it's completed.

A
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to