null_blk: use zone status for max active/open
authorKeith Busch <kbusch@kernel.org>
Thu, 22 Oct 2020 15:47:39 +0000 (08:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 16:38:33 +0000 (10:38 -0600)
commitfd78874b710f42ea46feaefd7c918893c8567e8a
tree8f29938db99dd32652229f808c84a749cb2220ee
parentcb3a92da231bcf55c243d00fa619ee36281b0001
null_blk: use zone status for max active/open

The block layer provides special status codes when requests go beyond
the zone resource limits. Use these codes instead of the generic IOERR
for requests that exceed the max active or open limits the null_blk
device was configured with so that applications know how these special
conditions should be handled.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_zoned.c