From: Kiyoshi Ueda Date: Tue, 11 Dec 2007 22:51:46 +0000 (-0500) Subject: blk_end_request: add bidi completion interface (take 4) X-Git-Tag: v2.6.25-rc1~1172^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a04fe34a3ec81ddeddb6c73fb7299716cffbb0;p=pandora-kernel.git blk_end_request: add bidi completion interface (take 4) This patch adds a variant of the interface, blk_end_bidi_request(), which completes a bidi request. Bidi request must be completed as a whole, both rq and rq->next_rq at once. So the interface has 2 arguments for completion size. As for ->end_io, only rq->end_io is called (rq->next_rq->end_io is not called). So if special completion handling is needed, the handler must be set to rq->end_io. And the handler must take care of freeing next_rq too, since the interface doesn't care of it if rq->end_io is not NULL. Cc: Boaz Harrosh Signed-off-by: Kiyoshi Ueda Signed-off-by: Jun'ichi Nomura Signed-off-by: Jens Axboe --- Reading git-diff-tree failed