Re: [PATCH] libnvdimm, {btt, blk}: do integrity setup before add_disk()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 5, 2018 at 3:56 PM, Vishal Verma <vishal.l.verma@xxxxxxxxx> wrote:
> Prior to 25520d55cdb6 ("block: Inline blk_integrity in struct gendisk")
> we needed to temporarily add a zero-capacity disk before registering for
> blk-integrity. But adding a zero-capacity disk caused the partition
> table scanning to bail early, and this resulted in partitions not coming
> up after a probe of the BTT or blk namespaces.
>
> We can now register for integrity before the disk has been added, and
> this fixes the rescan problems.
>
> Fixes: 25520d55cdb6 ("block: Inline blk_integrity in struct gendisk")
> Reported-by: Dariusz Dokupil <dariusz.dokupil@xxxxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Vishal Verma <vishal.l.verma@xxxxxxxxx>

Looks good to me, applied.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]