]> git.baikalelectronics.ru Git - kernel.git/commit
block: Make the integrity mapped property a bio flag
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Oct 2010 13:49:20 +0000 (15:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 15 Oct 2010 13:49:20 +0000 (15:49 +0200)
commit3ec020f7b1ddcf45a461c0c74d5ac63a30683482
tree1d2f76a70fc1c5edbb39769e675b9e468a346d5e
parent411a17202c61deb855951a9a109e297fe4c43afa
block: Make the integrity mapped property a bio flag

Previously we tracked whether the integrity metadata had been remapped
using a request flag. This was fine for low-level retries. However, if
an I/O was redriven by upper layers we would end up remapping again,
causing the retry to fail.

Deprecate the REQ_INTEGRITY flag and introduce BIO_MAPPED_INTEGRITY
which enables filesystems to notify lower layers that the bio in
question has already been remapped.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/scsi/sd_dif.c
include/linux/blk_types.h