lockdep.
b=16450
Details : Add lu_env parameter to ->rq_interpreter call-back. NULL is passed
there. Actual usage will be in CLIO.
+Severity : normal
+Bugzilla : 16450
+Description: Replace RW_LOCK_UNLOCKED() macro with rwlock_init().
+Details : Replace RW_LOCK_UNLOCKED() with rwlock_init() as the former
+ doesn't work with lockdep.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
count = LOV_POOL_INIT_COUNT;
op->op_array = NULL;
op->op_count = 0;
- op->op_rwlock = RW_LOCK_UNLOCKED;
+ rwlock_init(&op->op_rwlock);
op->op_size = count;
OBD_ALLOC(op->op_array, op->op_size * sizeof(op->op_array[0]));
if (op->op_array == NULL) {
server_put_mount_2(dev, lmi->lmi_mnt);
}
- m->mdt_sptlrpc_lock = RW_LOCK_UNLOCKED;
+ rwlock_init(&m->mdt_sptlrpc_lock);
sptlrpc_rule_set_init(&m->mdt_sptlrpc_rset);
spin_lock_init(&m->mdt_ioepoch_lock);
CFS_INIT_LIST_HEAD(&filter->fo_llog_list);
spin_lock_init(&filter->fo_llog_list_lock);
- filter->fo_sptlrpc_lock = RW_LOCK_UNLOCKED;
+ rwlock_init(&filter->fo_sptlrpc_lock);
sptlrpc_rule_set_init(&filter->fo_sptlrpc_rset);
filter->fo_fl_oss_capa = 0;
* policy registers *
***********************************************/
-static rwlock_t policy_lock = RW_LOCK_UNLOCKED;
+static rwlock_t policy_lock;
static struct ptlrpc_sec_policy *policies[SPTLRPC_POLICY_MAX] = {
NULL,
};
{
int rc;
+ rwlock_init(&policy_lock);
+
rc = sptlrpc_gc_start_thread();
if (rc)
goto out;