[pnfs] allow callbacks to data servers

This commit is contained in:
Olga Kornievskaia 2012-03-05 18:52:06 -05:00
parent f71623bc02
commit 4af8bbf362
4 changed files with 3 additions and 10 deletions

View file

@ -357,7 +357,7 @@ int nfs41_root_mount_addrs(
goto out;
/* create an rpc client */
status = nfs41_rpc_clnt_create(addrs, root->wsize, root->rsize, !is_data,
status = nfs41_rpc_clnt_create(addrs, root->wsize, root->rsize,
root->uid, root->gid, root->sec_flavor, &rpc);
if (status) {
eprintf("nfs41_rpc_clnt_create() failed %d\n", status);

View file

@ -443,7 +443,6 @@ int nfs41_rpc_clnt_create(
IN const multi_addr4 *addrs,
IN uint32_t wsize,
IN uint32_t rsize,
IN bool_t needcb,
IN uint32_t uid,
IN uint32_t gid,
IN uint32_t sec_flavor,

View file

@ -151,7 +151,6 @@ int nfs41_rpc_clnt_create(
IN const multi_addr4 *addrs,
IN uint32_t wsize,
IN uint32_t rsize,
bool_t needcb,
IN uint32_t uid,
IN uint32_t gid,
IN uint32_t sec_flavor,
@ -163,6 +162,7 @@ int nfs41_rpc_clnt_create(
int status;
char machname[MAXHOSTNAMELEN + 1];
gid_t gids[1];
bool_t needcb = 1;
rpc = calloc(1, sizeof(nfs41_rpc_clnt));
if (rpc == NULL) {

View file

@ -292,13 +292,7 @@ int nfs41_session_create(
}
AcquireSRWLockShared(&client->exid_lock);
#ifdef NO_CB_4_KRB5P
if ((client->roles & (EXCHGID4_FLAG_USE_PNFS_MDS |
EXCHGID4_FLAG_USE_NON_PNFS)) && client->rpc->needcb)
#else
if (client->roles & (EXCHGID4_FLAG_USE_PNFS_MDS |
EXCHGID4_FLAG_USE_NON_PNFS))
#endif
if (client->rpc->needcb)
session->flags |= CREATE_SESSION4_FLAG_CONN_BACK_CHAN;
session->flags |= CREATE_SESSION4_FLAG_PERSIST;
ReleaseSRWLockShared(&client->exid_lock);