linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Uneccesary flushes waking up suspended disks
@ 2024-03-07 13:53 Phillip Susi
  2024-03-07 15:37 ` Theodore Ts'o
  2024-03-11  1:32 ` Dave Chinner
  0 siblings, 2 replies; 13+ messages in thread
From: Phillip Susi @ 2024-03-07 13:53 UTC (permalink / raw)
  To: linux-fsdevel

I have noticed that whenever you suspend to ram or shutdown the system,
runtime pm suspended disks are woken up only to be spun right back down
again.  This is because the kernel syncs all filesystems, and they issue
a cache flush.  Since the disk is suspended however, there is nothing in
the cache to flush, so this is wasteful.

Should this be solved in the filesystems, or the block layer?

I first started trying to fix this in ext4, but now I am thinking this
is more of a generic issue that should be solved in the block layer.  I
am thinking that the block layer could keep a dirty flag that is set by
any write request, and cleared by a flush, or when the disk is
suspended.  As long as the dirty flag is not set, any flush requests can
just be discarded.

Thoughts?


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-03-25 17:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 13:53 Uneccesary flushes waking up suspended disks Phillip Susi
2024-03-07 15:37 ` Theodore Ts'o
2024-03-08 20:54   ` Phillip Susi
2024-03-09 17:37     ` Theodore Ts'o
2024-03-12 20:35       ` Phillip Susi
2024-03-11  1:32 ` Dave Chinner
2024-03-15 14:05   ` Phillip Susi
2024-03-16  4:38     ` Darrick J. Wong
2024-03-16 18:35     ` Phillip Susi
2024-03-17 22:45     ` Dave Chinner
2024-03-20 12:38       ` Phillip Susi
2024-03-20 21:58         ` Dave Chinner
2024-03-25 17:09           ` Phillip Susi

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).