diff options
author | Cyril Bur <cyrilbur@gmail.com> | 2017-11-03 13:41:42 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-06 20:33:54 +1100 |
commit | 86cd6d98020924f65a6773784c66c5b842e3e320 (patch) | |
tree | a3ab50bc30610196efe57400d9fb71e6df987164 /block/blk-core.c | |
parent | 59cf9a1cfcd9de6392d218fcd69413f2e77babbe (diff) | |
download | linux-86cd6d98020924f65a6773784c66c5b842e3e320.tar.bz2 |
powerpc/opal: Rework the opal-async interface
Future work will add an opal_async_wait_response_interruptible()
which will call wait_event_interruptible(). This work requires extra
token state to be tracked as wait_event_interruptible() can return and
the caller could release the token before OPAL responds.
Currently token state is tracked with two bitfields which are 64 bits
big but may not need to be as OPAL informs Linux how many async tokens
there are. It also uses an array indexed by token to store response
messages for each token.
The bitfields make it difficult to add more state and also provide a
hard maximum as to how many tokens there can be - it is possible that
OPAL will inform Linux that there are more than 64 tokens.
Rather than add a bitfield to track the extra state, rework the
internals slightly.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Fix __opal_async_get_token() when no tokens are free]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions