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:
Soumya Koduri 2018-12-26 15:24:49 +05:30 committed by Kaleb KEITHLEY
parent 1ea203d6b6
commit d9a8ccd354

View File

@ -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);