[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: EDEADLK in svn_repos_fs_begin_txn_for_commit2

From: Blair Zajac <blair_at_orcaware.com>
Date: Thu, 27 Jan 2011 07:43:24 -0800

On 1/27/11 1:35 AM, Philip Martin wrote:
> Philip Martin<philip.martin_at_wandisco.com> writes:
>
>> It appears that the kernel deadlock detection sometimes produces false
>> positives
>
> I believe I was mistaken when I assumed that fcntl() would block just
> the thread making the call; rereading the man page I think it is the
> whole process that blocks. That means this is not a false positive.

I believe your first inclination was correct, that fcntl() just blocks the
calling thread. How could one system call block other threads from doing work?

I'm guessing the kernel doesn't look if the process is multithreaded and if its
making progress, it just assumes it is single threaded, which is why it has to
return EDEADLK.

Blair
Received on 2011-01-27 16:44:06 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.