Mike Snitzer 2859323e35 block: fix blk_integrity_register to use template's interval_exp if not 0
When registering an integrity profile: if the template's interval_exp is
not 0 use it, otherwise use the ilog2() of logical block size of the
provided gendisk.

This fixes a long-standing DM linear target bug where it cannot pass
integrity data to the underlying device if its logical block size
conflicts with the underlying device's logical block size.

Cc: stable@vger.kernel.org
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-04-23 12:59:56 -06:00
..
2016-10-28 08:45:17 -06:00
2017-04-07 09:40:52 -06:00
2017-04-21 12:00:40 -06:00
2017-04-21 07:56:23 -06:00
2017-04-21 07:56:23 -06:00
2017-04-21 07:56:23 -06:00
2017-03-22 20:11:37 -06:00
2017-04-19 17:38:36 -06:00
2017-02-08 13:43:06 -07:00