Re: [PATCH v5] sd: Check for unaligned partial completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Damien" == Damien Le Moal <damien.lemoal@xxxxxxx> writes:

Damien,

Damien> I think we would still need the check for REQ_TYPE_FS to avoid
Damien> interfering with SG_IO commands. As for the "medium access
Damien> command" test, I am not sure if the block layer is the right
Damien> place to define that since a request operation may map to
Damien> different commands depending on the device type

Yeah, we should put that logic in sd.c since that's the entity preparing
the commands.

Damien> Which approach do you prefer ? Keeping everything contained to
Damien> mpt3sas (so basically just fixing the problematic patch), or
Damien> cleaning up everything with sd_completed_bytes rewrite ?

I was originally in favor of just patching mpt3sas since it's clearly
broken (a disk can't write a partial sector). But I don't think a device
driver should know how to special case REPORT ZONES or similar. That's
clearly SBC/ZBC territory, so I prefer the sd_completed_bytes()
approach.

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux