summaryrefslogtreecommitdiffstats
path: root/fs/ceph/file.c
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-02-03 13:56:33 +0200
committerSage Weil <sage@inktank.com>2014-02-07 10:45:53 -0800
commitff513ace9b772e75e337f8e058cc7f12816843fe (patch)
treec41312d8926e5f12f4f47426f46cce3da148c0a9 /fs/ceph/file.c
parent0bbfdfe8d25fcc1d5c2edb6b060fb0c5cf66aff9 (diff)
downloadop-kernel-dev-ff513ace9b772e75e337f8e058cc7f12816843fe.zip
op-kernel-dev-ff513ace9b772e75e337f8e058cc7f12816843fe.tar.gz
libceph: take map_sem for read in handle_reply()
Handling redirect replies requires both map_sem and request_mutex. Taking map_sem unconditionally near the top of handle_reply() avoids possible race conditions that arise from releasing request_mutex to be able to acquire map_sem in redirect reply case. (Lock ordering is: map_sem, request_mutex, crush_mutex.) Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/file.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud