patch-2.1.75 linux/fs/buffer.c

Next file: linux/fs/coda/Makefile
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.74/linux/fs/buffer.c linux/fs/buffer.c
@@ -263,6 +263,17 @@
 	sync_inodes(dev);
 	sync_buffers(dev, 0);
 	sync_dquots(dev, -1);
+	/* 
+	 * FIXME(eric) we need to sync the physical devices here. 
+	 * This is because some (scsi) controllers have huge amounts of
+	 * cache onboard (hundreds of Mb), and we need to instruct
+	 * them to commit all of the dirty memory to disk, and we should
+	 * not return until this has happened.
+	 *
+	 * This would need to get implemented by going through the assorted
+	 * layers so that each block major number can be synced, and this
+	 * would call down into the upper and mid-layer scsi.
+	 */
 }
 
 int fsync_dev(kdev_t dev)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov