devio: note FIXME on device close
authorAlan Cox <alan@linux.intel.com>
Sun, 4 Jan 2015 17:34:40 +0000 (17:34 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 4 Jan 2015 17:34:40 +0000 (17:34 +0000)
Kernel/devio.c

index c1ca6ee..ce8d53d 100644 (file)
@@ -257,6 +257,9 @@ int d_open(uint16_t dev, uint8_t flag)
 }
 
 
+/* FIXME: on the last close we ought to flush/invalidate any bufs
+   for this device so we can support swapping between media properly
+   (right now the cache is so small it happens to work...) */
 int d_close(uint16_t dev)
 {
        if (!validdev(dev))