[SCSI] sg: completely protect sfds
authorJörn Engel <joern@logfs.org>
Wed, 25 Apr 2012 15:17:29 +0000 (11:17 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 17 May 2012 09:08:56 +0000 (10:08 +0100)
commit035d12e658fba287a223361bc7dd442dd6737b68
tree1017b20cd9432b9507c485098171c74ee478aeb1
parentb499e5249eb80e4a7e71cfd04c6f628abdb27498
[SCSI] sg: completely protect sfds

sfds is protected by sg_index_lock - except for sg_open(), where it
isn't.  Change that and add some documentation.

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