mirror of
https://github.com/opnsense/src.git
synced 2026-05-16 19:19:23 -04:00
Do not exit ctl_be_block_worker() prematurely.
Return while there are any I/Os in a queue may result in them stuck
indefinitely, since there is only one taskqueue task for all of them.
I think I've reproduced this by switching ha_role to secondary under
heavy load.
MFC after: 3 days
(cherry picked from commit 6ed39db257)
This commit is contained in:
parent
832d0719d6
commit
a3d416f3da
1 changed files with 4 additions and 4 deletions
|
|
@ -1705,7 +1705,7 @@ ctl_be_block_worker(void *context, int pending)
|
|||
if (cbe_lun->flags & CTL_LUN_FLAG_NO_MEDIA) {
|
||||
ctl_set_busy(&io->scsiio);
|
||||
ctl_complete_beio(beio);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
be_lun->dispatch(be_lun, beio);
|
||||
continue;
|
||||
|
|
@ -1719,7 +1719,7 @@ ctl_be_block_worker(void *context, int pending)
|
|||
if (cbe_lun->flags & CTL_LUN_FLAG_NO_MEDIA) {
|
||||
ctl_set_busy(&io->scsiio);
|
||||
ctl_config_write_done(io);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
ctl_be_block_cw_dispatch(be_lun, io);
|
||||
continue;
|
||||
|
|
@ -1733,7 +1733,7 @@ ctl_be_block_worker(void *context, int pending)
|
|||
if (cbe_lun->flags & CTL_LUN_FLAG_NO_MEDIA) {
|
||||
ctl_set_busy(&io->scsiio);
|
||||
ctl_config_read_done(io);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
ctl_be_block_cr_dispatch(be_lun, io);
|
||||
continue;
|
||||
|
|
@ -1747,7 +1747,7 @@ ctl_be_block_worker(void *context, int pending)
|
|||
if (cbe_lun->flags & CTL_LUN_FLAG_NO_MEDIA) {
|
||||
ctl_set_busy(&io->scsiio);
|
||||
ctl_data_submit_done(io);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
ctl_be_block_dispatch(be_lun, io);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue