Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751021AbcCEVZ2 (ORCPT ); Sat, 5 Mar 2016 16:25:28 -0500 Received: from tn-76-7-162-101.sta.embarqhsd.net ([76.7.162.101]:49273 "EHLO animx.eu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbcCEVZU (ORCPT ); Sat, 5 Mar 2016 16:25:20 -0500 Date: Sat, 5 Mar 2016 16:25:17 -0500 From: Wakko Warner To: Johan de Jong Cc: linux-kernel@vger.kernel.org, Thomas Schmitt Subject: Re: SCSI sr driver: parallel writes to optical serialized which hurts performance (sr_mutex) Message-ID: <20160305212517.GA6030@animx.eu.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 18 Johan de Jong wrote: > In the mean time I have applied and tested the 2013 patch by Otto Meta: > > http://marc.info/?l=linux-scsi&m=135705061804384&w=2 > > which, in short, replaces mutex_lock(&sr_mutex) (global mutex), that > was introduced in 2010 to replace lock_kernel(), by per-device mutexes > and allowing concurrent ioctl(SG_IO) in different processes with > different sr devices. There seems to be a few patches floating around. I've had one running on 3.3.0 for a long time w/o any issues. I'm currently using the one from Tim Small (Search for subject Fix performance burning or extracting audio etc. from multiple optical drives.) on 4.x (where x is 3-4) and a 3.14.something without any issues. I still have the emails from Tim. My current usage is 2 systems with 3 burners from the same source.