libfuse: fix crash in unlock_path()
commit3a2bd4da6b0b713276528d0c818f9e7be515e8ec
authorRatna_Bolla@dell.com <Ratna_Bolla@dell.com>
Mon, 4 Feb 2013 17:30:14 +0000 (4 18:30 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 4 Feb 2013 17:30:14 +0000 (4 18:30 +0100)
treed09bfa03060438a1797540c19dd4e7f3113bb3ac
parentad38195a88c80d73cb46507851ebb870f3bd588d
libfuse: fix crash in unlock_path()

Patch by Ratna Manoj.

queue_element_unlock() should set ->first_locked and ->second_locked to false.

Discovered with 'fs_racer'.  The assert(wnode->treelock == TREELOCK_WRITE) in
unlock_path() was hit within minutes.

Miklos: simplified patch
ChangeLog
lib/fuse.c