bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #1798] [Patch #1798] Fixes dir. dependancy and refcnt locking pro


From: noreply
Subject: [patch #1798] [Patch #1798] Fixes dir. dependancy and refcnt locking problem
Date: Tue, 05 Aug 2003 17:23:37 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

Patch #1798 has been updated. 

Project: 
Category: None
Status: Open
Summary: Fixes dir. dependancy and refcnt locking problem

Follow-Ups:

Date: Tue 08/05/2003 at 23:23
By: marco_g

Comment:
This patch fixes Task #2489: "diskfs_node_refcnt_lock can be locked while 
write_node tries to lock it."

Fatfs depends a lot on the directory of a file. It is opened every time when it 
reads from or writes to a file. This effect is recursively. It slows down fatfs 
and introduces some problems like this locking problem.

I fixed this by adding a dependency to the directory for all opened files and I 
let every file hold a reference to that directory. Now fatfs consumes a bit 
more memory but that is much better than the currect situation because looking 
up the directory chain not only uses much memory but also much CPU time.

-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://savannah.gnu.org/patch/?func=detailpatch&patch_id=1798&group_id=30

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]