Skip to contentSkip to conversation

bsg: deprecate BIDI support in bsg

PATCH Superseded Christoph Hellwig 4 participants 7 messages Dec 19, 2018 – Dec 20, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

---
 block/bsg.c | 4 ++++
 1 file changed, 4 insertions(+)
block/bsg.c +4 -0
index 9a442c23a715..60b41bf79e16 100644
@@ -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 [email protected]\n");
+
 		next_rq = blk_get_request(q, REQ_OP_SCSI_IN, 0);
 		if (IS_ERR(next_rq)) {
 			ret = PTR_ERR(next_rq);
Signature · 1 line
2.19.2
#1 lore raw
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

You may want to add to the patch description that the XDWRITEREAD command has been removed from the latest version of SBC-4 (SBC4r15).

Bart.

#2 lore raw
Quoted 9 lines · Bart Van Assche
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

You may want to add to the patch description that the XDWRITEREAD command has been removed from the latest version of SBC-4 (SBC4r15).

Oh, I didn't even noticed that, thanks!

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

Signature · 1 line
Jens Axboe
#4 lore raw
Quoted 8 lines · Jens Axboe
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

You are the bsg maintainer, so I expected you to pick it up :)

maintainer
#5 lore raw
Quoted 11 lines · Christoph Hellwig
Quoted 8 lines · Jens Axboe
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

You are the bsg maintainer, so I expected you to pick it up :)

OK - did you to amend the commit message to reflect the death of XDWRITEREAD as well?

Signature · 1 line
Jens Axboe
#6 lore raw
Quoted 9 lines · Jens Axboe
Quoted 8 lines · Christoph Hellwig
Quoted 7 lines · Jens Axboe
Quoted 5 lines · Christoph Hellwig

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. It probably doesn't make sense to keep the support code around just for that, so start deprecating the support.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

You are the bsg maintainer, so I expected you to pick it up :)

OK - did you to amend the commit message to reflect the death of XDWRITEREAD as well?

It was made obsolete in _draft_ sbc4r15.pdf according to my notes.

It is not "dead", not until SBC-4 is ratified. Until then, SBC-3 is the current SCSI "block" device standard and it is there as a non-mandatory command.

Doug Gilbert