Re: [PATCH] libata: add TRIM support

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

 



Alan Cox wrote:
I imagine some sort of port or host flag, that the LLD could set
to indicate that it can correctly handle TRIM.  Or not handle TRIM.

Tejun is pretty good at these flag things.. I wonder what he might suggest?

As I said - just error it in your driver qc_issue function. If you are
feeling really arty you can hook do_identify and mask the bit in the
ident data as well. See it821x 'smart' RAID mode for both of those in
pata_it821x.c
..

I don't know.. then we have lots of copies of the code,
rather than a single "ATA library" copy of it.

Isn't the idea of libata to provide helper functions and
central feature flagging, to simplify the chipset drivers?

Either way works, but right now we don't actually know all of the
chipsets that can handle this feature, and all of those that cannot.

Using a simple host_flag to disable it (or enable it, either way),
will make it trivial to patch them out/in as they are discovered.

Cheers
--
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