open-cas-linux/modules
Michal Mielewczyk 232f13a8a4 Allow to interrupt cache init, load and stop.
When device used as cache had a big size, it took a lot of time to initialize.
If user would interrupt waiting, asyc OCF init procedure would continue, but
after finish, there was nobody to perfrom kernel part of start nor error
handling.

Now error handling and kernel part of start procedure are moved to completion.
If user will interrupt waiting at any point, newly started cache instance will
be stopped.

Since cache init and load vary only with check for old metadata and initializing
exported objects, they are now merged into one function.

Async cache stop is part of this commit because it was needed for rollback path.

Load, init and stop have common context, because in case of non interrupted
attach CAS needs to wait for rollback to be completed. Common context makes
passing `struct completion` easier between load, init and stop.

This commit is part of patch that will allow to interrupt waiting for OCF
operations.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-01-02 18:34:30 -05:00
..
cas_cache Allow to interrupt cache init, load and stop. 2020-01-02 18:34:30 -05:00
cas_disk Relax allocations requirements 2019-10-23 16:04:27 -04:00
include New error code for interrupted waiting. 2020-01-02 18:34:30 -05: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