open-cas-linux/modules
Michal Mielewczyk d483951ebe Free thread memory after it is stopped.
After marking thread as ready to stop, CAS was waiting this for thread to exit
out of main execution loop (in _cas_io_queue_thread()). In case of management
queue it lead to deadlock because both stoping queue and main execution loop was
performed in the same execution context.

Since freeing memory is the only operation after stopping thread, it can be
moved just after the main thread loop. After this little reordering,
synchronising between _cas_stop_thread() and _cas_io_queue_thread() in no longer
needed, and no deadlock will occur.

This change is needed to put management qeueue from completion context. Without
this cachnge, there will be no possiblitiy to stop cache from completion context
and to make rollback.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-01-02 09:22:13 -05:00
..
cas_cache Free thread memory after it is stopped. 2020-01-02 09:22:13 -05:00
cas_disk Relax allocations requirements 2019-10-23 16:04:27 -04:00
include Merge pull request #107 from robertbaldyga/cleanup-cas-version 2019-09-19 13:45:17 +02:00
CAS_VERSION_GEN Update Open CAS version to 19.09 2019-09-19 12:44:42 +02:00
config.mk Cleanup CAS_VERSION 2019-09-19 12:43:34 +02:00
extra.mk Initial commit 2019-03-29 08:45:50 +01:00
Makefile modules: Fixed getting running kernel ver 2019-08-26 15:52:32 +02:00