lkml.org 
[lkml]   [2004]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.7-mm7
Jesse Stockall <stockall@magma.ca> wrote:
>
> + *
> + * Unfortunately we have to use a separate wait queue, because we need
> + * to make sure that a thread waiting for a writelock won't block other
> + * threads from acquiring a readlock.
> */
> void usb_lock_all_devices(void)
> {
> - down_write(&usb_all_devices_rwsem);
> + wait_event(usb_all_devices_wqh,
> + down_write_trylock(&usb_all_devices_rwsem));

That's a bit unusual. Could you (or Alan) please explain the reason for
this a little more?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.109 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site