Re: [PATCH 09/10] Integrate the ridr code into IPC code

From: Tim Pepper
Date: Thu May 01 2008 - 00:33:46 EST


On Tue 29 Apr at 16:33:13 +0200 Nadia.Derbey@xxxxxxxx said:
> [PATCH 09/10]
>
> This patche makes the ipc ode use the ridr API.

Superfluous except...

> @@ -699,18 +695,13 @@ struct kern_ipc_perm *ipc_lock(struct ip
> struct kern_ipc_perm *out;
> int lid = ipcid_to_idx(id);
>
> - down_read(&ids->rw_mutex);
> -
> rcu_read_lock();
> - out = idr_find(&ids->ipcs_idr, lid);
> + out = ridr_find(&ids->ipcs_ridr, lid);
> if (out == NULL) {
> rcu_read_unlock();
> - up_read(&ids->rw_mutex);
> return ERR_PTR(-EINVAL);
> }
>
> - up_read(&ids->rw_mutex);
> -

...the removal of the rw_mutex down/up_read().


--
Tim Pepper <lnxninja@xxxxxxxxxxxxxxxxxx>
IBM Linux Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/