]> git.baikalelectronics.ru Git - kernel.git/commit
sd: Honor block layer integrity handling flags
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Sep 2014 23:20:08 +0000 (19:20 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 30 Sep 2014 21:17:35 +0000 (15:17 -0600)
commit6d89a0619a7e66dc3f6e721c3dc4fc5a88f27f15
treec1cbfbd9b3229906ec36c897761d06e1521823bd
parent9fd83f04d0bc191f57c438dd1ff90cdef89df348
sd: Honor block layer integrity handling flags

A set of flags introduced in the block layer enable better control over
how protection information is handled. These flags are useful for both
error injection and data recovery purposes. Checking can be enabled and
disabled for controller and disk, and the guard tag format is now a
per-I/O property.

Update sd_protect_op to communicate the relevant information to the
low-level device driver via a set of flags in scsi_cmnd.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_dif.c
include/linux/bio.h
include/scsi/scsi_cmnd.h