From: Jörn Engel Date: Tue, 24 Apr 2012 20:13:11 +0000 (-0400) Subject: [SCSI] sg: protect sdp->exclude X-Git-Tag: v3.5-rc1~172^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b499e5249eb80e4a7e71cfd04c6f628abdb27498;p=pandora-kernel.git [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 Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed