Project

General

Profile

Cleanup #50149

client: always register callbacks before mount()

Added by Xiubo Li 16 days ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
libcephfs
Labels (FS):
Pull request ID:

Description

Make Client::ll_register_callbacks() return 'int' type value instead
and return negative errno if not successful.

With this we can be sure that the callbacks won't change after the
client is mounted. Thus it can also help get rid of the client_lock.
And the inode lock patches followed in future they can benefit from
it too.

Also available in: Atom PDF