diff options
author | Chengming Zhou <[email protected]> | 2023-07-17 12:00:57 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-07-17 08:18:21 -0600 |
commit | b175c86739d38e41044d3136065f092a6d95aee6 (patch) | |
tree | db2a72218bc869280bb959bf45f69eea64be17a4 /net/lapb/lapb_subr.c | |
parent | 28b241237470981a96fbd82077c8044466b61e5f (diff) |
blk-flush: count inflight flush_data requests
The flush state machine use a double list to link all inflight
flush_data requests, to avoid issuing separate post-flushes for
these flush_data requests which shared PREFLUSH.
So we can't reuse rq->queuelist, this is why we need rq->flush.list
In preparation of the next patch that reuse rq->queuelist for flush
state machine, we change the double linked list to unsigned long
counter, which count all inflight flush_data requests.
This is ok since we only need to know if there is any inflight
flush_data request, so unsigned long counter is good.
Signed-off-by: Chengming Zhou <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions