Orabug:
28506080
If a user runs an old ASMLIB without integrity support, the bip
attached to a bio is owned by the block layer. We should not attempt
to unmap the pages in question.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
if (!bip)
return;
+ /*
+ * We may end up here if the user is running an old ASMLIB
+ * without integrity support.
+ */
+ if (bip->bip_flags & BIP_BLOCK_INTEGRITY)
+ return;
+
bip_for_each_vec(iv, bio_integrity(bio), iter) {
if (bio_data_dir(bio) == READ)
set_page_dirty_lock(iv.bv_page);