]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd_zbc: Initialize device request queue zoned data
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 21 Dec 2017 06:43:43 +0000 (15:43 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Jan 2018 03:13:19 +0000 (22:13 -0500)
commit81d181c037df2823c978b18962ddc360e3b2530c
tree43b6a13502a3d51f22b5f48038c20c5b4679c915
parent9a3e2f5a41cc48483c9fc13397a64a6d7c606cf3
scsi: sd_zbc: Initialize device request queue zoned data

Initialize the seq_zones_bitmap, seq_zones_wlock and nr_zones fields of
the disk request queue on disk revalidate. As the seq_zones_bitmap and
seq_zones_wlock allocations are identical, introduce the helper
sd_zbc_alloc_zone_bitmap(). Using this helper, reallocate the bitmaps
whenever the disk capacity (number of zones) changes.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd_zbc.c