lkml.org 
[lkml]   [2008]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/10] Integrate the ridr code into IPC code
On Tue 29 Apr at 16:33:13 +0200 Nadia.Derbey@bull.net 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@linux.vnet.ibm.com>
IBM Linux Technology Center


\
 
 \ /
  Last update: 2008-05-01 06:37    [W:0.207 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site