lkml.org 
[lkml]   [2002]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix bug in ext3 htree rename: doesn't delete old name, leaves ino with bad nlink


On Wed, 6 Nov 2002, Theodore Ts'o wrote:

> We take the BKL, yes; but if we need to sleep waiting for a block to
> be read in, that's when another process can run. Yes, that means
> another process could end up deleting the entry out from under us ---
> or make some other change to the directory. I was actually quite
> nervous about this, so I spent some time auditing the code paths of
> when do_split() might sleep, to make sure it would never leave the
> directory in an unstable condition.

HUH?

->rename() holds ->i_sem on both directories. So do all other directory
methods. What the hell is going on there?

-
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:30    [W:0.054 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site