]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - ipc/namespace.c
Merge remote-tracking branch 'fscache/fscache'
[karo-tx-linux.git] / ipc / namespace.c
index d43d9384bb2df7fc25d0943921b0c7fe54d1d989..59451c1e214d71f1b771b764d309b20759e19eb6 100644 (file)
@@ -89,7 +89,8 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
                perm = idr_find(&ids->ipcs_idr, next_id);
                if (perm == NULL)
                        continue;
-               ipc_lock_by_ptr(perm);
+               rcu_read_lock();
+               ipc_lock_object(perm);
                free(ns, perm);
                total++;
        }