]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[SCSI] Revert "sg: use rwsem to solve race during exclusive open"
authorJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 09:27:02 +0000 (10:27 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 09:59:54 +0000 (10:59 +0100)
commit065b4a2f5952df2c46aa04d24ffcce65cc75a1a9
treed78a56cbc1941487f68b227b9bf6066faa9419b7
parent98481ff0bb8792ebfb832e330e56d3c629ba5fa6
[SCSI] Revert "sg: use rwsem to solve race during exclusive open"

This reverts commit 15b06f9a02406e5460001db6d5af5c738cd3d4e7.

This is one of four patches that was causing this bug

[  205.372823] ================================================
[  205.372901] [ BUG: lock held when returning to user space! ]
[  205.372979] 3.12.0-rc6-hw-debug-pagealloc+ #67 Not tainted
[  205.373055] ------------------------------------------------
[  205.373132] megarc.bin/5283 is leaving the kernel with locks still held!
[  205.373212] 1 lock held by megarc.bin/5283:
[  205.373285]  #0:  (&sdp->o_sem){.+.+..}, at: [<ffffffff8161e650>] sg_open+0x3a0/0x4d0

Cc: 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