Thanks Alberto. Regards, Pradeep
On 6 May 2016 at 14:16, Alberto Garcia <be...@igalia.com> wrote: > On Fri 06 May 2016 09:39:13 AM CEST, Pradeep Kiruvale wrote: > > >> The throttling API is currently only used by block devices, and the > >> only documentation out-there is the code itself... > > > > Thanks, I will have a look and get back to you if I have any further > > questions regarding this. > > As I said in an earlier e-mail: > > 1. the common API is in throttle.h. > > 2. Once you configure the throttling settings you essentially only need > to call throttle_schedule_timer() to see if a request needs to be > throttled, and afterwards throttle_account() to register the I/O that > has been peformed. > > Berto >