From b04066721bf4a240f61b83bd87bbb27437c5fe4f Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Fri, 27 Apr 2018 15:12:08 +0530 Subject: gfapi : RECALL_LEASE implementation Right now there are two types of upcalls * poll method * registering callback But callback can be registered per fs and same callback fn shall be used for any lease recall with object handle as argument as done for cache invalidation. TODO: RECALL LEASE for each glfd (for future reference) (may be needed fo Samba as they do not deal with object handles. In case of RECALL_LEASE, we could associate separate cbk function for each glfd either by - extending pub_glfs_lease to accept new args (recall_cbk_fn, cookie) - or by defining new API "glfs_register_recall_cbk_fn (glfd, recall_cbk_fn, cookie) . In such cases, flag it and instead of calling below upcall functions, define a new one to go through the glfd list and invoke each of theirs recall_cbk_fn. Plus added following as well * passed lease id to dict in required arguments * added flag check in pub_glfs_open Updates: #350 Change-Id: I07a971f0f26ec6aae0b9f9a5613504317dee153b Signed-off-by: Soumya Koduri Signed-off-by: Poornima G Signed-off-by: Jiffin Tony Thottan --- api/src/gfapi.map | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/gfapi.map') diff --git a/api/src/gfapi.map b/api/src/gfapi.map index e9b5f88037f..6fa0326d78a 100644 --- a/api/src/gfapi.map +++ b/api/src/gfapi.map @@ -207,6 +207,7 @@ GFAPI_4.0.0 { glfs_file_lock; glfs_lease; glfs_h_lease; + glfs_recall_lease; glfs_read_async; glfs_write_async; glfs_readv_async; -- cgit