Thread (9 messages) flat view 9 messages, 4 authors, 2005-02-10

Re: [rfc][patch] ide: fix unneeded LBA48 taskfile registers access

From: Jeff Garzik <hidden>
Date: 2005-02-10 02:05:11
Also in: lkml

Bartlomiej Zolnierkiewicz wrote:
On Thu, 10 Feb 2005 09:52:25 +0900, Tejun Heo [off-list ref] wrote:
quoted
 Okay, another quick question.

 To fix the io_32bit race problem in ide_taskfile_ioctl() (and later
ide_cmd_ioctl() too), it seems simplest to mark the taskfile with
something like ATA_TFLAG_IO_16BIT flag and use the flag in task_in_intr().

 However, ATA_TFLAG_* are used by libata, and I think that, although
sharing hardware constants is good if the hardware is similar, sharing
driver-specific flags isn't such a good idea.  So, what do you think?

 1. Add ATA_TFLAG_IO_16BIT to ata.h
 2. Make ide's own set of task flags, maybe IDE_TFLAG_* (including
    IDE_TFLAG_LBA48)

Please add it to <ata.h> (unless Jeff complains loudly),
I have a patch converting ide_task_t to use struct ata_taskfile
(except ->protocol for now).
ACK

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help