]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/block_dev.c: skip rw_page if bdev has integrity
authorVishal Verma <vishal.l.verma@intel.com>
Tue, 12 May 2015 17:48:53 +0000 (13:48 -0400)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:39:49 +0000 (14:39 -0400)
commit7796683a5cca78b2b4f471166dc22e428bb884cb
tree5edbaed992cbc440dc93bb795a4cb58900dd6462
parent3144dbc79374fb9238255a23218924e33efc8e42
fs/block_dev.c: skip rw_page if bdev has integrity

Orabug: 22913653

If a block device has bio integrity enabled, rw_page will bypass the
integrity payload, which is undesirable. Skip rw_page if this is the
case.

Currently brd and zram provide rw_page, and the proposed 'nd' drivers
will too.

Cc: Jens Axboe <axboe@fb.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Suggested-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit f68eb1e71a92765ffd8eb68466a41b48f2fbba04)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/block_dev.c