diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-16 19:20:37 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-16 19:49:42 +0530 |
commit | be857905a86c39ca62b1435328b38f50627afbb5 (patch) | |
tree | f5368a422f1103c8d5af6faf24e99b683c8f2fd2 /cli | |
parent | f3132b97df6cb22d7fe6ba4d26e119200a3b70d6 (diff) |
meta: thread safe GB_METAUPDATE_OR_GOTO
GB_METAUPDATE_OR_GOTO used an already opened glfs fd to update the
meta data, since we have mpath number of threads writing to the same
metadata file simultaneously, this will lead to thread concurrency and
data consistency issues.
Hence this patch protects GB_METAUPDATE_OR_GOTO with a lock and removes
fd sharing by moving glfs_creat/open and glfs_close within the MACRO.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions