Skip to content

Commit

Permalink
zfs snapshot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakash Madiraju committed Dec 15, 2014
1 parent 1fd6c9c commit 39a163e
Show file tree
Hide file tree
Showing 3 changed files with 658 additions and 248 deletions.
10 changes: 8 additions & 2 deletions rpc/rpc-lib/src/rpc-clnt.c
Expand Up @@ -118,6 +118,7 @@ call_bail (void *data)
struct rpc_clnt *clnt = NULL;
rpc_clnt_connection_t *conn = NULL;
struct timeval current;
struct timespec ts;
struct list_head list;
struct saved_frame *saved_frame = NULL;
struct saved_frame *trav = NULL;
Expand Down Expand Up @@ -147,9 +148,14 @@ call_bail (void *data)
if (!trans)
goto out;

gettimeofday (&current, NULL);
INIT_LIST_HEAD (&list);
if ( 0 == clock_gettime(CLOCK_MONOTONIC, &ts))
{
TIMESPEC_TO_TIMEVAL(&current,&ts)
} else {
gettimeofday (&current, NULL);
}

INIT_LIST_HEAD (&list);
pthread_mutex_lock (&conn->lock);
{
/* Chaining to get call-always functionality from
Expand Down

0 comments on commit 39a163e

Please sign in to comment.