If flush fails to write all dirty pages (due to an I/O error on the server, server disk or networking stack) today the error (EIO) is marked in the inode, and returned on close. I think cifs_flush (which is called before close by the vfs) should also (perhaps after sleep a second or so then) retry at least once on the filemap_fdatawrite before giving up. (perhaps retry more if mounted hard) Thoughts?
-- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html