lkml.org 
[lkml]   [2004]   [Jan]   [18]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 18 Jan 2004 09:18:15 +0100
FromManfred Spraul <>
SubjectRe: [RFC] kill sleep_on
Trond Myklebust wrote:

>I'm not sure that taking inode->i_sem would be much of an improvement.
>Both th BKL and the inode semaphore seem superfluous to me in this
>situation.
>
I think the purpose of i_sem or lock_kernel is to protect the file 
pointer. Most local filesystems use i_sem, it's noticably faster - 
global vs. per-object locking.
Btw, generic_mapping_read should also lock it's accesses to f_pos: right 
now it reads and writes f_pos without any locking...

--
    Manfred

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:00    [W:0.245 / U:0.020 seconds]
©2003-2008 Jasper Spaans