[SCSI] sg: protect sdp->exclude
authorJörn Engel <joern@logfs.org>
Tue, 24 Apr 2012 20:13:11 +0000 (16:13 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 17 May 2012 09:08:55 +0000 (10:08 +0100)
commitb499e5249eb80e4a7e71cfd04c6f628abdb27498
tree003abeec481756acce963a8c840e7f787d464c97
parent6acddc5e911bb3a4a007448371ed7317c85669da
[SCSI] sg: protect sdp->exclude

Changes since v1: set_exclude now returns the new value, which gets
rid of the comma expression and the operator precedence bug.  Thanks
to Douglas for spotting it.

sdp->exclude was previously protected by the BKL.  The sg_mutex, which
replaced the BKL, only semi-protected it, as it was missing from
sg_release() and sg_proc_seq_show_debug().  Take an explicit spinlock
for it.

Signed-off-by: Joern Engel <joern@logfs.org>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sg.c
This page took 0.024193 seconds and 5 git commands to generate.