diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-10-01 20:20:27 +0200 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-10-12 10:35:30 +0200 |
commit | dbb64f8635f5d68192108b88759a34633a4bd558 (patch) | |
tree | 1159afed1de7314ce0d412469031832d0295c905 /crypto/aead.c | |
parent | md-cluster: Perform resync/recovery under a DLM lock (diff) | |
download | linux-dbb64f8635f5d68192108b88759a34633a4bd558.tar.xz linux-dbb64f8635f5d68192108b88759a34633a4bd558.zip |
md-cluster: Fix adding of new disk with new reload code
Adding the disk worked incorrectly with the new reload code. Fix it:
- No operation should be performed on rdev marked as Candidate
- After a metadata update operation, kick disk if role is 0xfffe
else clear Candidate bit and continue with the regular change check.
- Saving the mode of the lock resource to check if token lock is already
locked, because it can be called twice while adding a disk. However,
unlock_comm() must be called only once.
- add_new_disk() is called by the node initiating the --add operation.
If it needs to be canceled, call add_new_disk_cancel(). The operation
is completed by md_update_sb() which will write and unlock the
communication.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'crypto/aead.c')
0 files changed, 0 insertions, 0 deletions