Messages in this thread | | | Date | Mon, 24 Sep 2012 11:28:37 -0700 | From | Tejun Heo <> | Subject | Re: [PATCH] memstick: add support for legacy memorysticks |
| |
Hello,
On Mon, Sep 24, 2012 at 08:24:37PM +0200, Maxim Levitsky wrote: > Should have looked through the source. Understand now. > Just one quick question, should I create my own workqueue or use > schedule_work? if I use the later and my work function sleeps, will it > harmfully affect other users of this function?
If memstick can be in memory reclaim path (most block devices are), you would want to create a dedicated workqueue w/ rescuer. For details, please read Documentation/workqueue.txt.
Thanks.
-- tejun
| |