• J
    [SCSI] Revert "sg: no need sg_open_exclusive_lock" · 98481ff0
    James Bottomley 提交于
    This reverts commit 00b2d9d6.
    
    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: NDouglas Gilbert <dgilbert@interlog.com>
    Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
    98481ff0
sg.c 69.6 KB