lkml.org 
[lkml]   [1999]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sleeping while holding a rwspinlock?
I understand that the answer is No. (first from the Schimmel's book and
then from Andi's email).

Well, it turns out that for read_maps() it does not really matter as it
tries to get a GFP_KERNEL page *before* getting the lock so we never sleep
holding a lock.

Therefore, I shall redo my previous fs/proc/array.c
"tasklist_lock FIXMEs fixed" patch with one major
difference - this time I *know* exactly what I am doing :)

Regards,
Tigran.

On Sun, 14 Mar 1999, Tigran Aivazian wrote:

> I ask plainly - can I sleep while having read-locked rwspinlock?
>
> If yes, thank you.
> If no, I will update Documentation/spinlocks.txt and send you a patch for
> approval.
>
> Thanks,
> Tigran.
>
>



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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