]> git.baikalelectronics.ru Git - kernel.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 Williams <dan.j.williams@intel.com>
Fri, 26 Jun 2015 15:23:38 +0000 (11:23 -0400)
commit3194c9d2a77c4ecf3d7fb3d0966693efa8c86bb2
tree536fa54745479c3a4b3987b3180b60c9bbc50521
parent962819aad64671bcc3eef2ce49d643604b4e3f0b
fs/block_dev.c: skip rw_page if bdev has integrity

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>
fs/block_dev.c