Skip to content
Snippets Groups Projects
Commit 90382ed9 authored by Goldwyn Rodrigues's avatar Goldwyn Rodrigues Committed by NeilBrown
Browse files

Fix read-balancing during node failure


During a node failure, We need to suspend read balancing so that the
reads are directed to the first device and stale data is not read.
Suspending writes is not required because these would be recorded and
synced eventually.

A new flag MD_CLUSTER_SUSPEND_READ_BALANCING is set in recover_prep().
area_resyncing() will respond true for the entire devices if this
flag is set and the request type is READ. The flag is cleared
in recover_done().

Signed-off-by: default avatarGoldwyn Rodrigues <rgoldwyn@suse.com>
Reported-By: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
parent 33e38ac6
No related branches found
No related tags found
No related merge requests found
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