]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8520b72ff6546814ff11547a33c8cec81a9902d6
tree8f29938db99dd32652229f808c84a749cb2220ee
parentdb6ab23c44adb4a9d1cefbb721ce3499f0a4a17e
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