x86: add tizen_qemu_x86_defconfig & tizen_qemu_x86_64_defconfig
[platform/kernel/linux-rpi.git] / net / rds / tcp.c
index 5327d13..b560d06 100644 (file)
@@ -166,10 +166,10 @@ void rds_tcp_reset_callbacks(struct socket *sock,
         */
        atomic_set(&cp->cp_state, RDS_CONN_RESETTING);
        wait_event(cp->cp_waitq, !test_bit(RDS_IN_XMIT, &cp->cp_flags));
-       lock_sock(osock->sk);
        /* reset receive side state for rds_tcp_data_recv() for osock  */
        cancel_delayed_work_sync(&cp->cp_send_w);
        cancel_delayed_work_sync(&cp->cp_recv_w);
+       lock_sock(osock->sk);
        if (tc->t_tinc) {
                rds_inc_put(&tc->t_tinc->ti_inc);
                tc->t_tinc = NULL;