[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)
commit00b2d9d6d05b56fc1d77071ff8ccbd2c65b48dec
treea7d2ef1188d8c631f80316a6bc4f287eae3beb8e
parent15b06f9a02406e5460001db6d5af5c738cd3d4e7
[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