Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189916
b: refs/heads/master
c: a6a5349
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Apr 13, 2010
1 parent bfd1a0b commit 78504f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1e4dd0caa63e166afa46a1ccc947bebb4f66bcf
refs/heads/master: a6a5349d17f2a5c37079826f1a1474c3d08c6b53
8 changes: 8 additions & 0 deletions trunk/fs/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ static char tag_msg = CEPH_MSGR_TAG_MSG;
static char tag_ack = CEPH_MSGR_TAG_ACK;
static char tag_keepalive = CEPH_MSGR_TAG_KEEPALIVE;

#ifdef CONFIG_LOCKDEP
static struct lock_class_key socket_class;
#endif


static void queue_con(struct ceph_connection *con);
static void con_work(struct work_struct *);
Expand Down Expand Up @@ -227,6 +231,10 @@ static struct socket *ceph_tcp_connect(struct ceph_connection *con)
con->sock = sock;
sock->sk->sk_allocation = GFP_NOFS;

#ifdef CONFIG_LOCKDEP
lockdep_set_class(&sock->sk->sk_lock, &socket_class);
#endif

set_sock_callbacks(sock, con);

dout("connect %s\n", pr_addr(&con->peer_addr.in_addr));
Expand Down

0 comments on commit 78504f4

Please sign in to comment.