Closed Finix1979 closed 1 year ago
If any error occured in snap_trace_bio, we should still issue original write io along with setting snap device to failure mode.
Besides that, call tp_get(tp) only when clone finish successfully, otherwise tp can not get chance to destroy.
To simplify the error handling, use bio_list to gether all new_bio and submit them in one loop.
Signed-off-by: Finix yancw@info2soft.com
If any error occured in snap_trace_bio, we should still issue original write io along with setting snap device to failure mode.
Besides that, call tp_get(tp) only when clone finish successfully, otherwise tp can not get chance to destroy.
To simplify the error handling, use bio_list to gether all new_bio and submit them in one loop.
Signed-off-by: Finix yancw@info2soft.com