include/block.h: remove outdated comment
PATCH v2 1/1 include/block.h: remove outdated comment
There are a couple of errors in bdrv_drained_begin header comment:
- block_job_pause does not exist anymore, it has been replaced with job_pause in b15de82867
- job_pause is automatically invoked as a .drained_begin callback (child_job_drained_begin) by the child_job BdrvChildClass struct in blockjob.c. So no additional pause should be required.
---
v2:
+ add "block jobs" to the external request sources
include/block/block.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
include/block/block.h +1 -3
@@ -749,9 +749,7 @@ bool bdrv_drain_poll(BlockDriverState *bs, bool recursive,* bdrv_drained_begin: * * Begin a quiesced section for exclusive access to the BDS, by disabling -* external request sources including NBD server and device model. Note that -* this doesn't block timers or coroutines from submitting more requests, which -* means block_job_pause is still necessary. +* external request sources including NBD server, block jobs, and device model. * * This function can be recursive. */
Signature · 1 line
2.31.1
Quoted 7 lines · Emanuele Giuseppe Esposito
There are a couple of errors in
bdrv_drained_beginheader comment:
-block_job_pausedoes not exist anymore, it has been replaced withjob_pauseinb15de82867
-job_pauseis automatically invoked as a .drained_begin callback (child_job_drained_begin) by thechild_jobBdrvChildClass struct inblockjob.c. So no additional pause should be required.
Quoted 7 lines
Signed-off-by Emanuele Giuseppe Esposito <[email protected]>---
v2:
+ add "block jobs" to the external request sourcesinclude/block/block.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Kevin Wolf
AppliedAm 03.09.2021 um 13:38 hat Emanuele Giuseppe Esposito geschrieben:
Quoted 8 lines
There are a couple of errors in
bdrv_drained_beginheader comment:
-block_job_pausedoes not exist anymore, it has been replaced withjob_pauseinb15de82867
-job_pauseis automatically invoked as a .drained_begin callback (child_job_drained_begin) by thechild_jobBdrvChildClass struct inblockjob.c. So no additional pause should be required.Signed-off-by Emanuele Giuseppe Esposito <[email protected]>
Thanks, applied to the block branch.
Kevin