Skip to contentSkip to conversation

block: Fix left-over bi_bdev usage

PATCH In review Keith Busch 3 participants 3 messages Aug 23, 2017 – Aug 24, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Fix left-over bi_bdev usage

The bi_bdev field was replaced with the gendisk. This patch just fixes an omission.

Cc Christoph Hellwig <[email protected]>
---
 block/bio-integrity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/bio-integrity.c +1 -1
index b4737af..5df3290 100644
@@ -385,7 +385,7 @@ static void bio_integrity_verify_fn(struct work_struct *work)
  */
 bool __bio_integrity_endio(struct bio *bio)
 {
-	struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev);
+	struct blk_integrity *bi = blk_get_integrity(bio->bi_disk);
 	struct bio_integrity_payload *bip = bio_integrity(bio);
 
 	if (bio_op(bio) == REQ_OP_READ && !bio->bi_status &&
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Keith Busch

The bi_bdev field was replaced with the gendisk. This patch just fixes an omission.

Thanks Keith. I'm pretty sure I fixed exactly this one when rebasing from my nvme tree to the block tree. But I guess I didn't finish the rebase fully, as usual - git rebase considered harmful :)

maintainer
#2 lore raw
Quoted 7 lines · Christoph Hellwig
Quoted 2 lines · Keith Busch

The bi_bdev field was replaced with the gendisk. This patch just fixes an omission.

Thanks Keith. I'm pretty sure I fixed exactly this one when rebasing from my nvme tree to the block tree. But I guess I didn't finish the rebase fully, as usual - git rebase considered harmful :)

Problem is, the issue doesn't exist in my for-4.14/block branch, it only exists when that is merged with master. I'll apply it to my for-next branch, even though that one is not persistent, so that it builds.

Signature · 1 line
Jens Axboe