Skip to content

Commit 6784ed9

Browse files
Alexander Aringteigland
authored andcommitted
dlm: return -ENOENT if no comm was found
Currently if no comm can be found dlm_comm_seq() returns -EEXIST which means entry already exists for a lookup it makes no sense to return -EEXIST. We change it to -ENOENT. There is no user that will evaluate the return value on a specific value so this should be fine. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 57cdd1a commit 6784ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dlm/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ int dlm_comm_seq(int nodeid, uint32_t *seq, bool locked)
935935
mutex_unlock(&clusters_root.subsys.su_mutex);
936936
}
937937
if (!cm)
938-
return -EEXIST;
938+
return -ENOENT;
939939

940940
*seq = cm->seq;
941941
put_comm(cm);

0 commit comments

Comments
 (0)