Dan Williams
2cc98f9ea5
mdmon: close small window of invalid mon_tid
...
There is a small chance that the manager tries to wake the monitor before
mon_tid is set.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-07-14 14:59:39 -07:00
Neil Brown
c7c149300b
Keep container device open in monitor
...
... so that it cannot be stopped while there are active arrays.
I don't know where that second 'close' came from ....
2008-07-12 20:27:42 +10:00
Neil Brown
bfa44e2e7a
Revise message passing code.
...
More here
2008-07-12 20:27:40 +10:00
Neil Brown
4d43913ce0
Remove mgr_pipe for communicating from manage to monitor.
...
Data is being passed in shared memory, so the pipe is only being
use as a wakeup. This can more easily be done with a thread-signal.
2008-07-12 20:27:40 +10:00
Neil Brown
2f64e61a50
Remove mon_pipe for communicating from monitor to manager
...
The returned value was never used, and we don't really want
this return path anyway as writing to a pipe could conceivably
block, and the monitor must not block.
2008-07-12 20:27:40 +10:00
Dan Williams
5b65005fc8
imsm: reenable mdmon
...
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-06-16 15:36:41 -07:00
Neil Brown
e0d6609fe6
Exit when there are no more arrays to manage.
2008-05-27 09:18:41 +10:00
Neil Brown
5869a76c90
Remove supertype->devfd
...
It is never used.
2008-05-27 09:18:40 +10:00
Neil Brown
1ed3f38758
Remove stopped arrays.
...
When an array becomes inactive, clean up and forget it.
This involves signalling the manager.
2008-05-27 09:18:39 +10:00
Neil Brown
5d19760db0
Discard 'array_list' in mdmon
...
The container has an ->arrays field that we should be using.
2008-05-27 09:18:36 +10:00
Dan Williams
3e70c845e2
add infrastructure to receive higher order commands, like remove_device
...
From: Dan Williams <dan.j.williams@intel.com>
Each md_message encapsulates a single command. A command includes an 'action'
member which describes what if any data comes after the action. Communication
with the monitor involves updating the active_cmd pointer and then writing to
mgr_pipe. Pass/fail status is returned via mon_pipe.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:54 +10:00
Dan Williams
b109d92863
start fleshing out socket code, ping monitor to see if it is alive
...
From: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:52 +10:00
Neil Brown
549e9569c6
Merge mdmon
2008-05-15 16:48:37 +10:00