[lkml]   [2005]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: userspace block driver?
Oliver Neukum wrote:

>On Wed, 9 Nov 2005, Jeff Garzik wrote:
>>Has anybody put any thought towards how a userspace block driver would work?
>>Consider a block device implemented via an SSL network connection. I don't
>>want to put SSL in the kernel, which means the only other alternative is to
>>pass data to/from a userspace daemon.
>I am afraid this is impossible without some heavy infrastructure work.
>You will almost inevitably deadlock. Yes, you can mlock() your driver, but
>that still will not tell the kernel that GFP_KERNEL must be replaced with
>GFP_NOIO if it is triggered by syscalls you are doing.
A simple patch can help here (in addition to mlockall()):

you might want to increase the free memory target as well.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-11-09 09:40    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean