linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* spinlocks in ext4
@ 2012-10-08 23:33 Peter Fordham
  2012-10-09  0:54 ` Theodore Ts'o
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Fordham @ 2012-10-08 23:33 UTC (permalink / raw)
  To: linux-ext4

Hi,

Can someone give me a quick outline of why spinlocks are required in
the EXT4 code? Don't all file-system requests originate from user
context, hence meaning all locking be done with mutexes or semaphores.

I'm doing some profiling on an ARM device it's showing up spin unlock
taking a lot of time and I'd like to migrate to using mutex's instead
since they don't incur penalties from synchronization instructions
like DMB.  I'm guessing there's some underlying reason why this isn't
safe and I'd like to understand it.

thanks,

-Pete Fordham

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

end of thread, other threads:[~2012-10-12  0:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08 23:33 spinlocks in ext4 Peter Fordham
2012-10-09  0:54 ` Theodore Ts'o
2012-10-09  1:10   ` Theodore Ts'o
2012-10-11 18:37     ` Peter Fordham
2012-10-12  0:17       ` Theodore Ts'o

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