extern struct address_space_operations ll_aops;
extern struct address_space_operations ll_dir_aops;
struct super_operations ll_super_operations;
+
+extern void ll_recover(struct ptlrpc_client *);
extern int ll_commitcbd_setup(struct ll_sb_info *);
extern int ll_commitcbd_cleanup(struct ll_sb_info *);
GOTO(out_free, sb = NULL);
}
- ptlrpc_init_client(ptlrpc_connmgr, MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL,
+ ptlrpc_init_client(ptlrpc_connmgr, ll_recover,
+ MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL,
&sbi->ll_mds_client);
sbi->ll_mds_conn = ptlrpc_uuid_to_connection("mds");
}
/* initialize committed transaction callback daemon */
- INIT_LIST_HEAD(&sbi->ll_commitcbd_not_committed);
spin_lock_init(&sbi->ll_commitcbd_lock);
init_waitqueue_head(&sbi->ll_commitcbd_waitq);
init_waitqueue_head(&sbi->ll_commitcbd_ctl_waitq);
ll_commitcbd_cleanup(sbi);
obd_disconnect(&sbi->ll_conn);
ptlrpc_put_connection(sbi->ll_mds_conn);
+ ptlrpc_cleanup_client(&sbi->ll_mds_client);
OBD_FREE(sb->u.generic_sbp, sizeof(*sbi));
MOD_DEC_USE_COUNT;
EXIT;
if (err)
CERROR("mdc_setattr fails (%d)\n", err);
- ptlrpc_free_req(request);
+ ptlrpc_req_finished(request);
RETURN(err);
}