Re: [PATCH 2.5.68 2/2] i_size atomic access

Andrea Arcangeli (andrea@suse.de)
Fri, 25 Apr 2003 03:42:08 +0200


On Thu, Apr 24, 2003 at 06:05:03PM -0700, Andrew Morton wrote:
> And if the race _does_ hit, what is the effect? Assuming stat() was fixed
> with i_sem, I don't think the race has a very serious effect. We won't

writepage needs it too to avoid returning -EIO and I doubt you want to
take the i_sem in writepage

readpage is another obvious candidate where taking the i_sem is not an
option (even if it's one not risking to lose info in the fs, but it can
lose info in userspace or generate a malfunction).

Andrea
-
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/