I ran into an issue recently of attempting to make a pstorage_update
call from the callback set in pstorage_register
. It resulted in a difficult to track down error, so I'm posting the results here in case it helps someone else.
The symptoms of making the update request from the callback were that I sometimes saw data from a previous page written to the current page, although it did not do this consistently.
It's understandable that pstorage is not reentrant, although could be fixed.