]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ee4fe9edb59be9f99a741f3098c39604281003e
treed7c5be5f87c642b45a92eec573a657207b27b899
parent6691acda36d2330851a4a01ccca88ff7cd241434
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