aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2017-03-13 14:36:35 +0200
committerUlf Hansson <[email protected]>2017-04-24 21:42:00 +0200
commitcdf8a6fb48882651049e468e6b16956fb83db86c (patch)
tree4637e5764e797b5e97b3327433b4c9d9d2927405 /lib/mpi/mpi-cmp.c
parent8ddfe07e18c9c82f7567d3cfbd68d8b59764d015 (diff)
mmc: block: Introduce queue semantics
Change from viewing the requests in progress as 'current' and 'previous', to viewing them as a queue. The current request is allocated to the first free slot. The presence of incomplete requests is determined from the count (mq->qcnt) of entries in the queue. Non-read-write requests (i.e. discards and flushes) are not added to the queue at all and require no special handling. Also no special handling is needed for the MMC_BLK_NEW_REQUEST case. As well as allowing an arbitrarily sized queue, the queue thread function is significantly simpler. Signed-off-by: Adrian Hunter <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions