All of lore.kernel.org
 help / color / mirror / Atom feed
* Block device's sysfs setting getting lost after suspend-resume cycle
@ 2025-04-19 10:16 Holger Hoffstätte
  2025-04-21 11:49 ` Christoph Hellwig
  2025-04-23  6:35 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Holger Hoffstätte @ 2025-04-19 10:16 UTC (permalink / raw)
  To: linux-block

Hi!

I just noticed that sysfs settings now seem to get lost after
a suspend/resume cycle. In my case it's queue/read_ahead_kb,
which I configure with a udev rule. This has been working fine
for years.

We start out with:
$cat /sys/block/nvme0n1/queue/read_ahead_kb
128

Set a different value:
$echo 256 > /sys/block/nvme0n1/queue/read_ahead_kb
$cat /sys/block/nvme0n1/queue/read_ahead_kb
256

<suspend & resume>

Check again:
$cat /sys/block/nvme0n1/queue/read_ahead_kb
128

I'm reasonably sure it used to retain the configured value.
The same also happens with sd (SATA) devices on a different machine,
so it seems to be a generic problem with either block or sysfs.

This is with 6.14.3-rc2. I have unfortunately no idea when this
started to happen - i only noticed it now. Will trawl through
git history but wanted to see if this rings a bell with someone.

thanks,
Holger

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

end of thread, other threads:[~2025-04-24  8:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-19 10:16 Block device's sysfs setting getting lost after suspend-resume cycle Holger Hoffstätte
2025-04-21 11:49 ` Christoph Hellwig
2025-04-23  6:35 ` Christoph Hellwig
2025-04-23 10:11   ` Holger Hoffstätte
2025-04-23 16:19     ` Christoph Hellwig
2025-04-23 17:05       ` Holger Hoffstätte
2025-04-24  8:17         ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.