]> Git Repo - linux.git/commit
libceph: unlink from o_linger_requests when clearing r_osd
authorIlya Dryomov <[email protected]>
Tue, 4 Nov 2014 15:32:14 +0000 (18:32 +0300)
committerIlya Dryomov <[email protected]>
Thu, 13 Nov 2014 19:21:13 +0000 (22:21 +0300)
commita390de0208e7f2f8fdb2fbf970240e4f7b308037
tree775a1ba29cee2a886d8e50b69d470be05fd6e59d
parentaaef31703a0cf6a733e651885bfb49edc3ac6774
libceph: unlink from o_linger_requests when clearing r_osd

Requests have to be unlinked from both osd->o_requests (normal
requests) and osd->o_linger_requests (linger requests) lists when
clearing req->r_osd.  Otherwise __unregister_linger_request() gets
confused and we trip over a !list_empty(&osd->o_linger_requests)
assert in __remove_osd().

MON=1 OSD=1:

    # cat remove-osd.sh
    #!/bin/bash
    rbd create --size 1 test
    DEV=$(rbd map test)
    ceph osd out 0
    sleep 3
    rbd map dne/dne # obtain a new osdmap as a side effect
    rbd unmap $DEV & # will block
    sleep 3
    ceph osd in 0

Signed-off-by: Ilya Dryomov <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
net/ceph/osd_client.c
This page took 0.050282 seconds and 4 git commands to generate.