summaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-20 18:36:20 +0100
committerJens Axboe <axboe@kernel.dk>2018-12-21 16:47:58 +0100
commit2e5b2d7c408ed5fbe918b7409496b1acc84ff7bc (patch)
treebd2dd0359ead1bf0b4d5d21f1ba05eff2a0dbe83 /block/bsg.c
parentblkcg: remove unused __blkg_release_rcu() (diff)
downloadlinux-2e5b2d7c408ed5fbe918b7409496b1acc84ff7bc.tar.xz
linux-2e5b2d7c408ed5fbe918b7409496b1acc84ff7bc.zip
bsg: deprecate BIDI support in bsg
Besides the OSD command set that never got traction, the only SCSI command using bidirectional buffers is XDWRITEREAD in the 10 and 32 byte variants, which is extremely esoteric and has been removed from the spec again as of SBC4r15. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bsg.c')
-rw-r--r--block/bsg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block/bsg.c b/block/bsg.c
index 44f6028b9567..50e5f8f666f2 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -177,6 +177,10 @@ bsg_map_hdr(struct request_queue *q, struct sg_io_v4 *hdr, fmode_t mode)
goto out;
}
+ pr_warn_once(
+ "BIDI support in bsg has been deprecated and might be removed. "
+ "Please report your use case to linux-scsi@vger.kernel.org\n");
+
next_rq = blk_get_request(q, REQ_OP_SCSI_IN, 0);
if (IS_ERR(next_rq)) {
ret = PTR_ERR(next_rq);