Bug 839345 - Provide pointer to RPC clnt in CBK interface
Provide pointer to RPC clnt in CBK interface
Product: GlusterFS
Classification: Community
Component: rpc (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Amar Tumballi
Depends On:
  Show dependency treegraph
Reported: 2012-07-11 12:25 EDT by Amar Tumballi
Modified: 2013-12-18 19:08 EST (History)
2 users (show)

See Also:
Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-24 13:57:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Amar Tumballi 2012-07-11 12:25:13 EDT
Description of problem:

Currently, '_callback' actor of rpc-clnt has no information about which rpc-clnt program got the -callback;

Need below changes done in GlusterFS RPC layer for better use cases.

diff --git a/rpc/rpc-lib/src/rpc-clnt.h b/rpc/rpc-lib/src/rpc-clnt.h
index e7335e3..9635499 100644
--- a/rpc/rpc-lib/src/rpc-clnt.h
+++ b/rpc/rpc-lib/src/rpc-clnt.h
@@ -78,7 +78,7 @@ typedef struct rpc_clnt_program {
         int                   numproc;
 } rpc_clnt_prog_t;
-typedef int (*rpcclnt_cb_fn) (void *data);
+typedef int (*rpcclnt_cb_fn) (struct rpc_clnt *rpc, void *data);
Comment 1 Vijay Bellur 2012-07-11 22:04:35 EDT
CHANGE: http://review.gluster.com/3656 (rpc: add extra arguments to _callback's actor function) merged in master by Anand Avati (avati@redhat.com)

Note You need to log in before you can comment on or make changes to this bug.