diff options
author | David Jander <[email protected]> | 2022-06-21 08:12:33 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-27 13:27:25 +0100 |
commit | 69fa95905d40846756d22402690ddf5361a9d13b (patch) | |
tree | 08eb639a0785fd1564e05e2664532164917d2f28 /net/lapb/lapb_out.c | |
parent | 72c5c59b659d54d0c824d0333a211f373316361d (diff) |
spi: Ensure the io_mutex is held until spi_finalize_current_message()
This patch introduces a completion that is completed in
spi_finalize_current_message() and waited for in
__spi_pump_transfer_message(). This way all manipulation of ctlr->cur_msg
is done with the io_mutex held and strictly ordered:
__spi_pump_transfer_message() will not return until
spi_finalize_current_message() is done using ctlr->cur_msg, and its
calling context is only touching ctlr->cur_msg after returning.
Due to this, we can safely drop the spin-locks around ctlr->cur_msg.
Signed-off-by: David Jander <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions