lkml.org 
[lkml]   [2008]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND] [PATCH] VFS: make file->f_pos access atomic on 32bit arch
> Maybe cmpxchg8b is good for i486 or later x86, but i386 or other architectures
> that do not have similar instruction needs some locking primitive. I think lazy

We have a cmpxchg emulation on 386. That works because only UP 386s are
supported, so it can be done in software.

> seqlock is one option for making file->f_pos access atomic.

The question is if it's the right option. At least all the common
operations on fds (read/write) are all writers, not readers.

-Andi

--
ak@linux.intel.com


\
 
 \ /
  Last update: 2008-10-07 12:25    [W:1.024 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site