• James Bottomley's avatar
    [SCSI] Revert "sg: use rwsem to solve race during exclusive open" · 065b4a2f
    James Bottomley authored
    This reverts commit 15b06f9a.
    
    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: default avatarDouglas Gilbert <dgilbert@interlog.com>
    Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
    065b4a2f
sg.c 69.8 KB