OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Memory shortage can result in inconsistent flocks state
Re: [PATCH] Memory shortage can result in inconsistent flocks state [message #20190 is a reply to message #20183] Thu, 13 September 2007 07:16 Go to previous messageGo to previous message
Balbir Singh is currently offline  Balbir Singh
Messages: 491
Registered: August 2006
Senior Member
On 9/13/07, Pavel Emelyanov <xemul@openvz.org> wrote:
> J. Bruce Fields wrote:
> > On Tue, Sep 11, 2007 at 04:38:13PM +0400, Pavel Emelyanov wrote:
> >> This is a known feature that such "re-locking" is not atomic,
> >> but in the racy case the file should stay locked (although by
> >> some other process), but in this case the file will be unlocked.
> >
> > That's a little subtle (I assume you've never seen this actually
> > happen?), but it makes sense to me.
>
> Well, this situation is hard to notice since usually programs
> try to finish up when some error is returned from the kernel,
> but I do believe that this could happen in one of the openvz
> kernels since we limit the kernel memory usage for "containers"
> and thus -ENOMEM is a common error.
>

The fault injection framework should be able to introduce the same
error. Of course hitting the error would require careful setup of the
fault parameters.

Balbir
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] net: Fix race when opening a proc file while a network namespace is exiting.
Next Topic: [PATCH] shrink_dcache_sb speedup
Goto Forum:
  


Current Time: Sat Aug 23 12:15:25 GMT 2025

Total time taken to generate the page: 0.06028 seconds