block: introduce blk_rq_is_passthrough
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Jan 2017 15:57:29 +0000 (16:57 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 21:00:34 +0000 (14:00 -0700)
commit57292b58ddb58689e8c3b4c6eadbef10d9ca44dd
treedd6e5af538b2f2684d2090781f668c7099a0455e
parent09fc54ccc42744669e748434af5c2f8adcad900f
block: introduce blk_rq_is_passthrough

This can be used to check for fs vs non-fs requests and basically
removes all knowledge of BLOCK_PC specific from the block layer,
as well as preparing for removing the cmd_type field in struct request.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
21 files changed:
block/blk-core.c
block/blk-exec.c
block/blk.h
block/elevator.c
block/mq-deadline.c
drivers/ata/libata-scsi.c
drivers/block/cciss.c
drivers/nvme/host/fc.c
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
drivers/nvme/target/loop.c
drivers/scsi/hpsa.c
drivers/scsi/scsi.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c
drivers/scsi/smartpqi/smartpqi_init.c
drivers/scsi/sun3_scsi.c
include/linux/blkdev.h
include/linux/blktrace_api.h
include/scsi/scsi_cmnd.h
kernel/trace/blktrace.c