~ubuntu-branches/ubuntu/precise/ceph/precise

« back to all changes in this revision

Viewing changes to src/mds/Locker.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-02-25 15:17:26 UTC
  • mfrom: (0.1.3 sid) (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225151726-i4fh9xvh88ufvaux
Tags: 0.24.3-2
* Make Ceph Linux only and build on all Linux archs (closes: #614890).
* Support parallel building via DEB_BUILD_OPTIONS .
* Add watch file, thanks to Clint Byrum (closes: #615021).
* Tune packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
596
596
 
597
597
    // drop loner before doing waiters
598
598
    if (caps &&
599
 
        in->is_auth() && in->get_loner() >= 0 && in->get_wanted_loner() < 0) {
 
599
        in->is_auth() && in->get_wanted_loner() != in->get_loner()) {
600
600
      dout(10) << "  trying to drop loner" << dendl;
601
601
      if (in->try_drop_loner()) {
602
602
        dout(10) << "  dropped loner" << dendl;
662
662
    eval_any(&in->policylock, &need_issue);
663
663
 
664
664
  // drop loner?
665
 
  if (in->is_auth() && in->get_loner() >= 0 && in->get_wanted_loner() < 0) {
 
665
  if (in->is_auth() && in->get_wanted_loner() != in->get_loner()) {
666
666
    dout(10) << "  trying to drop loner" << dendl;
667
667
    if (in->try_drop_loner()) {
668
668
      dout(10) << "  dropped loner" << dendl;