Re: [PATCH 05/12] btrfs: remove useless mutex lock/unlock sequences

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

 



On Mon, Apr 25, 2011 at 08:12:59AM -0400, Chris Mason wrote:
> > This code tests whether the mutex_lock can be acquired, and when the
> > mutex_lock can be taken, it try again.
> > So I think that it is not a meaningless code.
> 
> Correct, this code is waiting for the current lock holder to finish.
> It's not exactly pretty but it needs to stay.

Ok, I think it deserves a comment, will add it and resend.


david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux