Re: [RFC PATCH 1/3] block: add rq->complete_io hook for request stacking

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Hannes Reinecke <hare@...>
Cc: Kiyoshi Ueda <k-ueda@...>, <jens.axboe@...>, <linux-kernel@...>, <linux-scsi@...>, <dm-devel@...>, <michaelc@...>
Date: Tuesday, March 4, 2008 - 4:02 pm

Hi Hannes,

Hannes Reinecke wrote:

Cloned bio's bi_end_io() can check the error.

For successful I/O, it calls something equivalent to
end_that_request_first() for the original request,
that may eventually complete the original bio and
notify the submitter.

For error, it can decide not to complete the original bio
and record the error information.

When the clone request is finally completed and rq->end_io() is
called, stacking driver can check the recorded error information
and decide whether it should take any action or just complete
the original request by blk_complete_request().

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH 1/3] block: add rq->complete_io hook for r..., Jun'ichi Nomura, (Tue Mar 4, 4:02 pm)