提交 0ce1b18c 编写于 作者: S Shaun Tancheff 提交者: Tejun Heo

libata: Some drives failing on SCT Write Same

Restrict support SCT Write Same to devices which also support ZAC where
support is required.
Reported-by: NMike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: NShaun Tancheff <shaun.tancheff@seagate.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 0b9e2988
......@@ -3562,9 +3562,9 @@ static unsigned int ata_scsiop_maint_in(struct ata_scsi_args *args, u8 *rbuf)
supported = 3;
break;
case WRITE_SAME_16:
if (ata_id_sct_write_same(dev->id))
supported = 3;
break;
if (!ata_id_sct_write_same(dev->id))
break;
/* fallthrough: if SCT ... only enable for ZBC */
case ZBC_IN:
case ZBC_OUT:
if (ata_id_zoned_cap(dev->id) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册