]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sg: no need sg_open_exclusive_lock
authorVaughan Cao <vaughan.cao@oracle.com>
Thu, 29 Aug 2013 02:00:37 +0000 (10:00 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:28:09 +0000 (07:28 -0700)
commit6c5ca50508192b3da14357ee9b3de036765a120e
treea7d2ef1188d8c631f80316a6bc4f287eae3beb8e
parentae0ec6e85e417776edc5cf3cf85a4e21044988f5
[SCSI] sg: no need sg_open_exclusive_lock

Open exclusive check is protected by o_sem, no need sg_open_exclusive_lock.
@exclude is used to record which type of rwsem we are holding.

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