Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ieee1394: raw1394: add comments on lock usage

Add a who-is-who about some locks and list heads in raw1394's struct
definitions.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

+5 -5
+5 -5
drivers/ieee1394/raw1394-private.h
··· 27 27 28 28 struct hpsb_host *host; 29 29 30 - struct list_head req_pending; 31 - struct list_head req_complete; 30 + struct list_head req_pending; /* protected by reqlists_lock */ 31 + struct list_head req_complete; /* protected by reqlists_lock */ 32 32 spinlock_t reqlists_lock; 33 33 wait_queue_head_t wait_complete; 34 34 35 - struct list_head addr_list; 35 + struct list_head addr_list; /* protected by host_info_lock */ 36 36 37 37 u8 __user *fcp_buffer; 38 38 ··· 63 63 u8 client_transactions; 64 64 u64 recvb; 65 65 u16 rec_length; 66 - u8 *addr_space_buffer; /* accessed by read/write/lock */ 66 + u8 *addr_space_buffer; /* accessed by read/write/lock requests */ 67 67 }; 68 68 69 69 struct pending_request { ··· 79 79 struct host_info { 80 80 struct list_head list; 81 81 struct hpsb_host *host; 82 - struct list_head file_info_list; 82 + struct list_head file_info_list; /* protected by host_info_lock */ 83 83 }; 84 84 85 85 #endif /* IEEE1394_RAW1394_PRIVATE_H */