Re: [PATCH RESEND number 2] libata: eliminate the home grown dma padding in favour of that provided by the block layer

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

 



James Bottomley wrote:
> Plus, tape devices are also ATAPI and since the problem seems to be
> handling of ATAPI pio commands, they need all of this too.  It really
> is, I think, better just to do the setup in the libata slave configure
> if the device is atapi.

If no SCSI HBA needs it, fine.

> For all the rest, I think code demonstrates better ... well, except the
> sata_fsl.c update ... you leave in qc->n_iter, but it's only ever set to
> zero ... doesn't that cause this driver to break?

Probably.  I was gonna cross check with your patch while splitting.
They seem mostly identical so I'll probably use your patch with some
modifications.

> I analysed all the places you use the expanded data length.  To keep the
> true length in the request and add the drain if necessary, I think
> requires this update over my published libata drain patch.  I've also
> added the request accessor to the drain buffer.  Could you verify this
> actually works?  If it does, it's better than all the additions to block
> and sr.  It would probably help to resend the series rebased against git
> current.

No, it doesn't.  Drain needs to extend the sg table too and it makes
controllers lax about buffer overruns for commands they shouldn't be.
Gee.. What's the deal with extra four bytes?  If you're worried about
the size of struct request, chopping off PC request part into a separate
struct would be far better strategy than making what's already confusing
more confusing.

Thanks.

-- 
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux