[SCSI] sg: remove sg_mutex
authorJörn Engel <joern@logfs.org>
Thu, 12 Apr 2012 21:35:05 +0000 (17:35 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 17 May 2012 09:08:57 +0000 (10:08 +0100)
commit37b9d1e0017b2d8384ad03d250b15fd3d69771d5
tree81f6cfce7563e58ca85c5f9fbb01a526e6da97e1
parent035d12e658fba287a223361bc7dd442dd6737b68
[SCSI] sg: remove sg_mutex

With the exception of the detached field, sg_mutex no longer adds any
locking.  detached handling has been broken before and is still broken
and this patch does not seem to make things worse than they were to
begin with.

However, I have observed cases of tasks being blocked for >200s waiting
for sg_mutex.  So the removal clearly adds value for very little cost.

Signed-off-by: Joern Engel <joern@logfs.org>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sg.c