libceph: protect osdc->osd_lru list with a spinlock
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 Apr 2016 14:07:26 +0000 (16:07 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:12:30 +0000 (01:12 +0200)
commit9dd2845ccb40452d4ac943231ea34aade4a02c68
treed7c5be5f87c642b45a92eec573a657207b27b899
parent7a28f59bf9fb220cdf56ac6ab539fc4a0ae59414
libceph: protect osdc->osd_lru list with a spinlock

OSD client is getting moved from the big per-client lock to a set of
per-session locks.  The big rwlock would only be held for read most of
the time, so a global osdc->osd_lru needs additional protection.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/osd_client.h
net/ceph/osd_client.c