summaryrefslogtreecommitdiffstats
path: root/drivers/block/sx8.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2020-11-20 10:55:15 +0900
committerJens Axboe <axboe@kernel.dk>2020-12-07 17:36:03 -0700
commit2e8c6e0e1d2d65562c637940747cfa30559f976a (patch)
tree7dbdf01e308099b11ea6ffd07be39ab4fcef2c9e /drivers/block/sx8.c
parent2b8b7ed7f3fc2b1536a0add3941ae159529d23bd (diff)
downloadlinux-stable-2e8c6e0e1d2d65562c637940747cfa30559f976a.tar.gz
linux-stable-2e8c6e0e1d2d65562c637940747cfa30559f976a.tar.bz2
linux-stable-2e8c6e0e1d2d65562c637940747cfa30559f976a.zip
null_blk: Improve implicit zone close
When open zone resource management is enabled, that is, when a null_blk zoned device is created with zone_max_open different than 0, implicitly or explicitly opening a zone may require implicitly closing a zone that is already implicitly open. This operation is done using the function null_close_first_imp_zone(), which search for an implicitly open zone to close starting from the first sequential zone. This implementation is simple but may result in the same being constantly implicitly closed and then implicitly reopened on write, namely, the lowest numbered zone that is being written. Avoid this by starting the search for an implicitly open zone starting from the zone following the last zone that was implicitly closed. The function null_close_first_imp_zone() is renamed null_close_imp_open_zone(). Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/sx8.c')
0 files changed, 0 insertions, 0 deletions