Whamcloud - gitweb
LU-11170 tests: add debugging to sanity/415
[fs/lustre-release.git] / lustre / kernel_patches / patches / block-pass-bio-into-integrity_processing_fn-rhel8.patch
1 Having struct bio allows us to do more in the genrate/verify_fn,
2 like copying a known good guard tag already available rather than
3 calculating it.
4
5 Index: linux-4.18.0-80.11.2.el8_0/block/bio-integrity.c
6 ===================================================================
7 --- linux-4.18.0-80.11.2.el8_0.orig/block/bio-integrity.c
8 +++ linux-4.18.0-80.11.2.el8_0/block/bio-integrity.c
9 @@ -197,6 +197,8 @@ static blk_status_t bio_integrity_proces
10  
11                 iter.data_buf = kaddr + bv.bv_offset;
12                 iter.data_size = bv.bv_len;
13 +               iter.bi_idx = bviter.bi_idx;
14 +               iter.bio = bio;
15  
16                 ret = proc_fn(&iter);
17                 if (ret) {
18 Index: linux-4.18.0-80.11.2.el8_0/include/linux/blkdev.h
19 ===================================================================
20 --- linux-4.18.0-80.11.2.el8_0.orig/include/linux/blkdev.h
21 +++ linux-4.18.0-80.11.2.el8_0/include/linux/blkdev.h
22 @@ -1502,7 +1502,9 @@ struct blk_integrity_iter {
23         sector_t                seed;
24         unsigned int            data_size;
25         unsigned short          interval;
26 +       RH_KABI_FILL_HOLE(unsigned short bi_idx)
27         const char              *disk_name;
28 +       RH_KABI_EXTEND(struct bio *bio)
29  };
30  
31  struct blk_integrity_profile {