too many wait_queues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All
i'm developing a driver, each request to this driver will have a request id, and once the response to this request will be available to the driver it must awake the exact same requesting process "using the request id"
i've thought of a list or "req_id, wait_queue, data" .. for each new request a new entry with req_id will be added and the requesting process will sleep on the corresponding wait_queue till the data arrive
what is am afraid of:
1- what about if there was too many requests !! this means too many wait_queues are declared .. is this a problem ?
another thing:
2- what about if that "req_id, wait_queue, data" where allocated using a lookaside cache "kmem_cache_t" ?? will this cause a problem "in case the cache decided to create a bulk of those objects !!"
3- am i solving the problem the right way ??

thanks in advance ..

MHD.Tayseer



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux