xen: dont use bitfields for indicators modified under different locks
Juergen Gross
maintainerPATCH 1/1 xen: dont use bitfields for indicators modified under different locks
It is no good idea to have bitfields in the same byte which are modified with different locks held (or, in this case, one with lock and one without). Use at least bytes for this purpose.
Signed-off-by Juergen Gross <[email protected]>
drivers/xen/scsifront/common.h +2 -2
@@ -113,8 +113,8 @@ struct vscsifrnt_info {struct task_struct *kthread;wait_queue_head_t wq;wait_queue_head_t wq_sync; - unsigned int waiting_resp:1; - unsigned int waiting_sync:1; +unsigned char waiting_resp; +unsigned char waiting_sync; }; #define DPRINTK(_f, _a...) \