summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2015-10-01 20:20:27 +0200
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2015-10-12 10:35:30 +0200
commitdbb64f8635f5d68192108b88759a34633a4bd558 (patch)
tree1159afed1de7314ce0d412469031832d0295c905 /block
parentmd-cluster: Perform resync/recovery under a DLM lock (diff)
downloadlinux-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 'block')
0 files changed, 0 insertions, 0 deletions