gfapi: nit cleanup related to releasing fs->mutex lock
This is follow-up patch to the comment received for - https://review.gluster.org/#/c/glusterfs/+/21882 We need not hold the fs->mutex lock to log error message. Change-Id: I29d2ea2e6cfecc3dd94982bd48f4bc9f11cc3aac fixes: bz#1660577 Signed-off-by: Soumya Koduri <skoduri@redhat.com>
This commit is contained in:
parent
1ea203d6b6
commit
d9a8ccd354
@ -656,9 +656,9 @@ volfile:
|
||||
pthread_mutex_lock(&fs->mutex);
|
||||
if ((size == fs->oldvollen) &&
|
||||
(memcmp(fs->oldvolfile, rsp.spec, size) == 0)) {
|
||||
pthread_mutex_unlock(&fs->mutex);
|
||||
gf_msg(frame->this->name, GF_LOG_INFO, 0, API_MSG_VOLFILE_INFO,
|
||||
"No change in volfile, continuing");
|
||||
pthread_mutex_unlock(&fs->mutex);
|
||||
goto out;
|
||||
}
|
||||
pthread_mutex_unlock(&fs->mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user