block/aio_task: assert `max_busy_tasks` is greater than 0
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 5 Oct 2021 16:11:57 +0000 (18:11 +0200)
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 5 Oct 2021 16:56:41 +0000 (18:56 +0200)
commita9515df4d66da34cbc2938e4c1f46015fc74ff93
treec4aba744a54f8190e710f5ad9b0db8a7c6fbe3e8
parent8fc898ce0b3e7fea8c7c2a8d8977f2a9b77ecebf
block/aio_task: assert `max_busy_tasks` is greater than 0

All code in block/aio_task.c expects `max_busy_tasks` to always
be greater than 0.

Assert this condition during the AioTaskPool creation where
`max_busy_tasks` is set.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211005161157.282396-3-sgarzare@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
block/aio_task.c