One proposal for btrfs was that we should look at getting discard out of the
synchronous path in order to minimize the slowdown associated with enabling
discard at mount time. Seems like an obvious win for "hint" like operations like
discard.
I do wonder where we stand now with the cost of the various discard commands -
how painful is it for modern SSD's? Do we have a good sense of how discard
performance scales as the request size increases? Do most devices "no op" a
discard operation when issued against an already discarded region?
Would this be an interesting topic to discuss in a shared block/file system session?
Regards,
Ric