Skip to content

Commit 2e5b2d7

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent 6b45053 commit 2e5b2d7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎block/bsg.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ bsg_map_hdr(struct request_queue *q, struct sg_io_v4 *hdr, fmode_t mode)
177177
goto out;
178178
}
179179

180+
pr_warn_once(
181+
"BIDI support in bsg has been deprecated and might be removed. "
182+
"Please report your use case to linux-scsi@vger.kernel.org\n");
183+
180184
next_rq = blk_get_request(q, REQ_OP_SCSI_IN, 0);
181185
if (IS_ERR(next_rq)) {
182186
ret = PTR_ERR(next_rq);

0 commit comments

Comments
 (0)