]> git.baikalelectronics.ru Git - kernel.git/commit
block: add zone specific block statuses
authorKeith Busch <kbusch@kernel.org>
Thu, 24 Sep 2020 20:53:28 +0000 (13:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Oct 2020 21:05:05 +0000 (15:05 -0600)
commitdaac0116ed2d2e8cd28265ae20f035c9e9b7b08e
treeafedde5da48885555103d2324c064777e024011a
parentc99673f58fa694054050153b78b3d5c8b0525c8c
block: add zone specific block statuses

A zoned device with limited resources to open or activate zones may
return an error when the host exceeds those limits. The same command may
be successful if retried later, but the host needs to wait for specific
zone states before it should expect a retry to succeed. Have the block
layer provide an appropriate status for these conditions so applications
can distinuguish this error for special handling.

Cc: linux-api@vger.kernel.org
Cc: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/block/queue-sysfs.rst
block/blk-core.c
include/linux/blk_types.h