Re: [PATCH] padata: add helper function for queue length

2016-10-12 Thread Jason A. Donenfeld
Hi Steffen, On Fri, Oct 7, 2016 at 5:15 AM, Steffen Klassert wrote: > Why you want to have this? I'm working on some bufferbloat/queue code that could benefit from knowing how many items are currently in flight. The goal is to always keep padata busy, but never with more jobs than absolutely nec

Re: [PATCH] padata: add helper function for queue length

2016-10-06 Thread Steffen Klassert
On Sun, Oct 02, 2016 at 03:46:38AM +0200, Jason A. Donenfeld wrote: > Since padata has a maximum number of inflight jobs, currently 1000, it's > very useful to know how many jobs are currently queued up. This adds a > simple helper function to expose this information. > > Signed-off-by: Jason A. D

[PATCH] padata: add helper function for queue length

2016-10-01 Thread Jason A. Donenfeld
Since padata has a maximum number of inflight jobs, currently 1000, it's very useful to know how many jobs are currently queued up. This adds a simple helper function to expose this information. Signed-off-by: Jason A. Donenfeld --- include/linux/padata.h | 2 ++ kernel/padata.c| 16 +++