mirror of
https://github.com/ceph/ceph
synced 2025-02-07 19:03:18 +00:00
Merge PR #39574 into master
* refs/pull/39574/head: client: wake up the front pos waiter Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
f8398f56f8
@ -9516,8 +9516,15 @@ void Client::lock_fh_pos(Fh *f)
|
||||
|
||||
void Client::unlock_fh_pos(Fh *f)
|
||||
{
|
||||
ceph_assert(ceph_mutex_is_locked_by_me(client_lock));
|
||||
|
||||
ldout(cct, 10) << __func__ << " " << f << dendl;
|
||||
f->pos_locked = false;
|
||||
if (!f->pos_waiters.empty()) {
|
||||
// only wake up the oldest waiter
|
||||
auto cond = f->pos_waiters.front();
|
||||
cond->notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
int Client::uninline_data(Inode *in, Context *onfinish)
|
||||
|
Loading…
Reference in New Issue
Block a user