]> 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)
commitdb16d56fbc1bd2bc9cf22eb9dfabb89727bac3af
tree8f29938db99dd32652229f808c84a749cb2220ee
parent26bb5a69686e0b030a966ab13e0663dc3fdfacd4
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