Skip to content

Commit

Permalink
curvefs/client: fix deadlock when readdir and update parent xattr whe…
Browse files Browse the repository at this point in the history
…n write

Signed-off-by: wanghai01 <seanhaizi@163.com>
  • Loading branch information
SeanHai committed Oct 27, 2022
1 parent a4fe622 commit 28ada09
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions curvefs/src/client/fuse_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,6 @@ CURVEFS_ERROR FuseClient::FuseOpReadDirPlus(fuse_req_t req, fuse_ino_t ino,
return ret;
}

::curve::common::UniqueLock lgGuard = inodeWrapper->GetUniqueLock();

uint64_t dindex = fi->fh;
DirBufferHead *bufHead = dirBuf_->DirBufferGet(dindex);
if (!bufHead->wasRead) {
Expand Down

0 comments on commit 28ada09

Please sign in to comment.