zbd: Fix job zone size initialization
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 30 Aug 2019 01:45:03 +0000 (10:45 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Aug 2019 01:52:30 +0000 (19:52 -0600)
commitfc52e44996fd74ee43520acbab81f0cf3206a30d
tree70a4ca951df6bc82b8ff3a68e8ca08851ec1e5a7
parentc012becd449b5bcb8a885a3938e7e38737d9aafe
zbd: Fix job zone size initialization

For a job accessing a zoned block device, the zone size is automatically
initialized to the device zone size. However, since zone information for
a zoned block device is parsed once only for the first job
initialization of a multi job workload, only the first job has its
zonesize option intialized, causing problem if the zoneskip option is
also used (assert exit).

Fix this by always initializing a job zonesize option using the job
file zbd information when verifying the job ZBD related sizes and
offsets.

Fixes: 4d37720ae029 ("zbd: Add support for zoneskip option")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c