提交 9551bfba 编写于 作者: B Bryan Thompson 提交者: Greg Kroah-Hartman

staging: unisys: visorchannel: Describe spinlocks in VISORCHANNEL_Tag struct

Add comments indicating the requirements and use of the insert_lock and
remove_lock in the VISORCHANNEL_Tag structure.
Signed-off-by: NBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4c67da30
...@@ -33,9 +33,10 @@ struct VISORCHANNEL_Tag { ...@@ -33,9 +33,10 @@ struct VISORCHANNEL_Tag {
struct channel_header chan_hdr; struct channel_header chan_hdr;
uuid_le guid; uuid_le guid;
ulong size; ulong size;
BOOL needs_lock; BOOL needs_lock; /* channel creator knows if more than one
spinlock_t insert_lock; * thread will be inserting or removing */
spinlock_t remove_lock; spinlock_t insert_lock; /* protect head writes in chan_hdr */
spinlock_t remove_lock; /* protect tail writes in chan_hdr */
struct { struct {
struct signal_queue_header req_queue; struct signal_queue_header req_queue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册