block: Don't merge requests if integrity flags differ
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Sep 2014 23:20:06 +0000 (19:20 -0400)
committerJens Axboe <axboe@fb.com>
Sat, 27 Sep 2014 15:14:57 +0000 (09:14 -0600)
commit4eaf99beadcefbf126fa05e66fb40fca999e09fd
treee91203868eb48cdf06dd575e7d3f3569d6b6bfc9
parentaae7df50190a640e51bfe11c93f94741ac82ff0b
block: Don't merge requests if integrity flags differ

We'd occasionally merge requests with conflicting integrity flags.
Introduce a merge helper which checks that the requests have compatible
integrity payloads.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-integrity.c
block/blk-merge.c
include/linux/blkdev.h