]> Git Repo - qemu.git/commit
block/block-backend: blk_iostatus_reset: drop usage of bs->job
authorVladimir Sementsov-Ogievskiy <[email protected]>
Thu, 6 Jun 2019 15:41:30 +0000 (18:41 +0300)
committerKevin Wolf <[email protected]>
Tue, 18 Jun 2019 14:41:10 +0000 (16:41 +0200)
commit68d00e429395a273cf25827f89f036548fb67bdd
treeff2e924e9bfa79c015898adb398642d9fd39061c
parentcc19f1773d30d13293d703140eb5627e393ace6e
block/block-backend: blk_iostatus_reset: drop usage of bs->job

We are going to remove bs->job pointer. Drop it's usage in
blk_iostatus_reset.

blk_iostatus_reset() has only two callers:

1. blk_attach_dev(). This doesn't have anything to do with jobs and
    attaching a new guest device won't solve any problem the job
    encountered, so no reason to reset the iostatus for the job.

2. qmp_cont(). This resets the iostatus for everything. We can just
    call block_job_iostatus_reset() for all block jobs instead of going
    through BlockBackend.

Suggested-by: Kevin Wolf <[email protected]>
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/block-backend.c
monitor/qmp-cmds.c
This page took 0.023096 seconds and 4 git commands to generate.