afs/include/rxrpc transport.h,1.1.1.1,1.2 peer.h,1.2,1.3
connection.h,1.3,1.4
dwh at infradead.org
dwh at infradead.org
Fri Aug 15 15:03:50 BST 2003
- Previous message: afs/net/rxrpc peer.c,1.7,1.8 connection.c,1.6,1.7
- Next message: afs/fs/afs volume.h,1.6,1.7 volume.c,1.9,1.10 vnode.h,1.5,1.6
vnode.c,1.8,1.9 vlocation.c,1.11,1.12 main.c,1.12,1.13
internal.h,1.16,1.17 inode.c,1.11,1.12 file.c,1.8,1.9
cell.h,1.5,1.6 cell.c,1.10,1.11 cache.h,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/afs/include/rxrpc
In directory phoenix.infradead.org:/tmp/cvs-serv16042/include/rxrpc
Modified Files:
transport.h peer.h connection.h
Log Message:
number local connections using consecutive integers (stepping 4) rather than
assumed 32-bit pointer values
Index: transport.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/transport.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- transport.h 19 Jun 2002 13:33:55 -0000 1.1.1.1
+++ transport.h 15 Aug 2003 13:03:48 -0000 1.2
@@ -85,10 +85,11 @@
static inline void rxrpc_get_transport(struct rxrpc_transport *trans)
{
- if (atomic_read(&trans->usage)<=0)
+ if (atomic_read(&trans->usage) <= 0)
BUG();
atomic_inc(&trans->usage);
- //printk("rxrpc_get_transport(%p{u=%d})\n",trans,atomic_read(&trans->usage));
+ //printk("rxrpc_get_transport(%p{u=%d})\n",
+ // trans, atomic_read(&trans->usage));
}
extern void rxrpc_put_transport(struct rxrpc_transport *trans);
@@ -98,11 +99,6 @@
extern void rxrpc_del_service(struct rxrpc_transport *trans,
struct rxrpc_service *srv);
-
-#if 0
-extern int rxrpc_trans_add_connection(struct rxrpc_transport *trans,
- struct rxrpc_connection *conn);
-#endif
extern void rxrpc_trans_receive_packet(struct rxrpc_transport *trans);
Index: peer.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/peer.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- peer.h 17 Oct 2002 15:24:41 -0000 1.2
+++ peer.h 15 Aug 2003 13:03:48 -0000 1.3
@@ -42,7 +42,10 @@
struct rxrpc_timer timeout; /* timeout for grave destruction */
struct list_head link; /* link in transport's peer list */
struct list_head proc_link; /* link in /proc list */
- rwlock_t conn_lock; /* lock for connections */
+ rwlock_t conn_idlock; /* lock for connection IDs */
+ struct list_head conn_idlist; /* list of connections granted IDs */
+ uint32_t conn_idcounter; /* connection ID counter */
+ rwlock_t conn_lock; /* lock for active/dead connections */
struct list_head conn_active; /* active connections to/from this peer */
struct list_head conn_graveyard; /* graveyard for inactive connections */
spinlock_t conn_gylock; /* lock for conn_graveyard */
Index: connection.h
===================================================================
RCS file: /home/cvs/afs/include/rxrpc/connection.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- connection.h 13 Aug 2003 10:05:27 -0000 1.3
+++ connection.h 15 Aug 2003 13:03:48 -0000 1.4
@@ -34,6 +34,7 @@
struct list_head link; /* link in peer's list */
struct list_head proc_link; /* link in proc list */
struct list_head err_link; /* link in ICMP error processing list */
+ struct list_head id_link; /* link in ID grant list */
struct sockaddr_in addr; /* remote address */
struct rxrpc_call *channels[4]; /* channels (active calls) */
wait_queue_head_t chanwait; /* wait for channel to become available */
- Previous message: afs/net/rxrpc peer.c,1.7,1.8 connection.c,1.6,1.7
- Next message: afs/fs/afs volume.h,1.6,1.7 volume.c,1.9,1.10 vnode.h,1.5,1.6
vnode.c,1.8,1.9 vlocation.c,1.11,1.12 main.c,1.12,1.13
internal.h,1.16,1.17 inode.c,1.11,1.12 file.c,1.8,1.9
cell.h,1.5,1.6 cell.c,1.10,1.11 cache.h,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-afs-cvs
mailing list