diff options
| author | Jens Axboe <[email protected]> | 2018-11-06 13:30:55 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-11-19 08:34:50 -0700 |
| commit | 85f4d4b65fdd67f1d6dc9eeb1d91923cef07eb6a (patch) | |
| tree | 8a87578fc6753431f9d698703ad0217392916f3e /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 849a370016a5489c49253338507ee6cc4a08df4b (diff) | |
block: have ->poll_fn() return number of entries polled
We currently only really support sync poll, ie poll with 1 IO in flight.
This prepares us for supporting async poll.
Note that the returned value isn't necessarily 100% accurate. If poll
races with IRQ completion, we assume that the fact that the task is now
runnable means we found at least one entry. In reality it could be more
than 1, or not even 1. This is fine, the caller will just need to take
this into account.
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions