[dm-devel] [PATCH 2/2] dm-mpath: Add element for suspended state.
Alasdair G Kergon
agk at redhat.com
Mon Nov 16 13:54:30 UTC 2009
On Sun, Nov 15, 2009 at 11:38:29PM -0800, Mike Anderson wrote:
> Add element to multipath structure for indication of suspended state.
Is there a way to avoid this?
It seems redundant for a target to need to track whether or not
it is suspended. Core dm should be capable of that.
dm_suspend has:
dm_table_postsuspend_targets(map);
set_bit(DMF_SUSPENDED, &md->flags);
Can we reorder those two?
What about dm_resume?
clear_bit(DMF_SUSPENDED, &md->flags);
Can that move a little higher up the function?
- preresume, clear DMF_SUSPENDED, resume perhaps?
Alasdair
More information about the dm-devel
mailing list