Seems simple enough.  It's possible even to get rid of most
conditional logic ... add "int mem_flags" to "struct usb_device",
initialize it to GFP_KERNEL, and use that field any time a
driver would otherwise use SLAB_KERNEL.  Storage
could set it to GFP_NOIO.

----- Original Message -----
From: "Alan Cox" <[EMAIL PROTECTED]>
To: "David Brownell" <[EMAIL PROTECTED]>
Cc: "Alan Cox" <[EMAIL PROTECTED]>; "Linux usb mailing list"
<[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 12:13 PM
Subject: Re: [linux-usb-devel] Re: usb-storage not suitable for swapping


> > How would tying it to devices work?  Starting to swap onto a file
> > would need to trigger that, also I/O to memory mapped files (yes?);
> > and it'd nice to be able to clear such device flags later.  I don't know
> > what information the MM subsystem exports, or when it does so;
> > though I suppose usb-storage could set that flag for all disks, just
> > in case they're later used for swapping/paging.
>
> All disk I/O basically. So you set it on all storage devices


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to