blockjobs: model single jobs as transactions
model all independent jobs as single job transactions. It's one less case we have to worry about when we add more states to the transition machine. This way, we can just treat all job lifetimes exactly the same. This helps tighten assertions of the STM graph and removes some conditionals that would have been needed in the coming commits adding a more explicit job lifetime management API. Signed-off-by:John Snow <jsnow@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> Reviewed-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/backup.c 1 addition, 2 deletionsblock/backup.c
- block/commit.c 1 addition, 1 deletionblock/commit.c
- block/mirror.c 1 addition, 1 deletionblock/mirror.c
- block/stream.c 1 addition, 1 deletionblock/stream.c
- blockjob.c 16 additions, 9 deletionsblockjob.c
- include/block/blockjob.h 0 additions, 1 deletioninclude/block/blockjob.h
- include/block/blockjob_int.h 2 additions, 1 deletioninclude/block/blockjob_int.h
- tests/test-bdrv-drain.c 2 additions, 2 deletionstests/test-bdrv-drain.c
- tests/test-blockjob-txn.c 7 additions, 12 deletionstests/test-blockjob-txn.c
- tests/test-blockjob.c 1 addition, 1 deletiontests/test-blockjob.c
Loading
Please register or sign in to comment