]> 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)
commite534b367ad411e92b166ee634f25c5149d0f6a5d
treed7c5be5f87c642b45a92eec573a657207b27b899
parentd7ed3cfe0b1bb91ea359ece52317f2e640f9c2a6
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