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)
commit495d2b3883682fcd1c3dee3a45e38fd00154ae25
tree1d2f76a70fc1c5edbb39769e675b9e468a346d5e
parente817bf3f68f55e7307c3e9abe5f32d0c05c83988
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