]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sg: push file descriptor list locking down to per-device locking
authorVaughan Cao <vaughan.cao@oracle.com>
Thu, 29 Aug 2013 02:00:39 +0000 (10:00 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:28:10 +0000 (07:28 -0700)
commita6f175f82d2582dbd204e3da4dd1ec4b238b99f4
tree0b2018c25b6774bd8cd3d97c1201670c1470de52
parent92eccf67d1626a1b9b289a1ac4094d4155201eca
[SCSI] sg: push file descriptor list locking down to per-device locking

Push file descriptor list locking down to per-device locking. Let sg_index_lock
only protect device lookup.
sdp->detached is also set and checked with this lock held.

Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sg.c