linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Invalidating Caches When a Block Device Changes
@ 2019-08-03  5:01 John Sully
  0 siblings, 0 replies; only message in thread
From: John Sully @ 2019-08-03  5:01 UTC (permalink / raw)
  To: linux-block

Hello,

I'm writing a block device driver for a device who's data might change
without the kernel performing any specific writes.  I'm looking for a
way to inform any upstream caches that the data it holds is no longer
valid and must be discarded.

I've found APIs for flushing caches *to* the block device, but none
that makes sense to call within the context of the block device driver
itself when it has learned the underlying device itself has changed.

Can anyone point me to the proper APIs?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-03  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-03  5:01 Invalidating Caches When a Block Device Changes John Sully

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).