linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] Replacing TASK_(UN)INTERRUPTIBLE with regions of uninterruptibility
@ 2024-02-02  8:51 David Howells
  2024-02-02  9:08 ` Miklos Szeredi
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: David Howells @ 2024-02-02  8:51 UTC (permalink / raw)
  To: lsf-pc
  Cc: dhowells, Matthew Wilcox, Kent Overstreet, dwmw2, linux-fsdevel,
	linux-mm

Hi,

We have various locks, mutexes, etc., that are taken on entry to filesystem
code, for example, and a bunch of them are taken interruptibly or killably (or
ought to be) - but filesystem code might be called into from uninterruptible
code, such as the memory allocator, fscache, etc..

Does it make sense to replace TASK_{INTERRUPTIBLE,KILLABLE,UNINTERRUPTIBLE}
with begin/end functions that define the area of uninterruptibility?  The
regions would need to handle being nested, so maybe some sort of counter in
the task_struct counter would work.

David



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

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

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02  8:51 [LSF/MM/BPF TOPIC] Replacing TASK_(UN)INTERRUPTIBLE with regions of uninterruptibility David Howells
2024-02-02  9:08 ` Miklos Szeredi
2024-02-02  9:43   ` Kent Overstreet
2024-02-02 10:30 ` David Howells
2024-02-02 10:46   ` Miklos Szeredi
2024-02-02 11:22   ` David Howells
2024-02-02 12:06     ` Miklos Szeredi
2024-02-02 12:44     ` Kent Overstreet
2024-02-02 16:23     ` Al Viro
2024-02-03 17:27       ` Kent Overstreet
2024-02-02 13:28 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox