mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* lock_kernel() usage and sync_*() functions
@ 2001-03-22  3:11 Nigel Gamble
  2001-03-22  3:42 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Nigel Gamble @ 2001-03-22  3:11 UTC (permalink / raw)
  To: linux-kernel

Why is the kernel lock held around sync_supers() and sync_inodes() in
sync_old_buffers() and fsync_dev(), but not in sync_dev()?  Is it just
to serialize calls to these functions, or is there some other reason?

Since this use of the BKL is one of the causes of high preemption
latency in a preemptible kernel, I'm hoping it would be OK to replace
them with a semaphore.  Please let me know if this is not the case.

Thanks!

Nigel Gamble                                    nigel@nrg.org
Mountain View, CA, USA.                         http://www.nrg.org/

MontaVista Software                             nigel@mvista.com


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

end of thread, other threads:[~2001-03-22 17:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-22  3:11 lock_kernel() usage and sync_*() functions Nigel Gamble
2001-03-22  3:42 ` Linus Torvalds
2001-03-22  5:18   ` Alexander Viro
2001-03-22 14:45     ` Ingo Oeser
2001-03-22 17:20       ` Alexander Viro

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

all inboxes | Powered by JetHome®