zbd: add missing client/server support for option max_open_zones
authorNiklas Cassel <niklas.cassel@wdc.com>
Thu, 27 May 2021 11:12:31 +0000 (11:12 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 May 2021 22:04:56 +0000 (16:04 -0600)
commit6df25f781e07e373833ec1629e005d36474c3b67
treef4c8f8509543be1aec1e61a19dda9e6dd9f60da9
parent3fd60780bc5984639b568e85d31ede7a50f4e1e5
zbd: add missing client/server support for option max_open_zones

Ensure that we convert the max_open_zones option for client/server.

Use __cpu_to_le32()/__le32_to_cpu() rather than
cpu_to_le32()/le32_to_cpu(), since max_open_zones is defined
as int rather than unsigned int in thread_options.h.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
cconv.c
server.h
thread_options.h