Skip to content
Commit a25eb944 authored by Brian Wood's avatar Brian Wood Committed by Alasdair G Kergon
Browse files

dm: stripe trigger event on failure



This patch adds the stripe_end_io function to process errors that might
occur after an IO operation. As part of this there are a number of
enhancements made to record and trigger events:

- New atomic variable in struct stripe to record the number of
errors each stripe volume device has experienced (could be used
later with uevents to report back directly to userspace)

- New workqueue/work struct setup to process the trigger_event function

- New end_io function. It is here that testing for BIO error conditions
take place. It determines the exact stripe that cause the error,
records this in the new atomic variable, and calls the queue_work() function

- New trigger_event function to process failure events. This
calls dm_table_event()

Signed-off-by: default avatarBrian Wood <brian.j.wood@intel.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent fb8b2848
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment