Re: [PATCH 26/39] mds: issue caps when lock state in replica become SYNC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Greg Farnum <greg@xxxxxxxxxxx>

On Sun, Mar 17, 2013 at 7:51 AM, Yan, Zheng <zheng.z.yan@xxxxxxxxx> wrote:
> From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx>
>
> because client can request READ caps from non-auth MDS.
>
> Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx>
> ---
>  src/mds/Locker.cc | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc
> index 4d45f99..28920d4 100644
> --- a/src/mds/Locker.cc
> +++ b/src/mds/Locker.cc
> @@ -4403,6 +4403,8 @@ void Locker::handle_file_lock(ScatterLock *lock, MLock *m)
>      lock->set_state(LOCK_SYNC);
>
>      lock->get_rdlock();
> +    if (caps)
> +      issue_caps(in);
>      lock->finish_waiters(SimpleLock::WAIT_RD|SimpleLock::WAIT_STABLE);
>      lock->put_rdlock();
>      break;
> --
> 1.7.11.7
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux