Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751053AbcCEUqr (ORCPT ); Sat, 5 Mar 2016 15:46:47 -0500 Received: from mout.gmx.net ([212.227.17.21]:59548 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbcCEUqm (ORCPT ); Sat, 5 Mar 2016 15:46:42 -0500 Date: Sat, 05 Mar 2016 21:47:00 +0100 From: "Thomas Schmitt" To: linux-kernel@vger.kernel.org Subject: Re: SCSI sr driver: parallel writes to optical serialized which hurts performance (sr_mutex) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: jrdejong@gmail.com References: In-Reply-To: Message-Id: <11777578711288137074@scdbackup.webframe.org> X-Provags-ID: V03:K0:yrXClZlVVuD3u7/FH8OmSeEAh9HnB5urxd0mIsF+wmTWIhCeyMM 3V/k9XArsbCUXErAaUe9hl7EOMefJ3PX4pm2EIKNqWJD+9PRp+MSRsaKRSDV75AIN62mCfB Em/244g1uG+acqvHvJyon73YEoc9WqqnJKTDuoSTXJw0r5x/p1aUhcirszBiLGSHhao+VQL urGZQN+LMy3mHG/v1CNcA== X-UI-Out-Filterresults: notjunk:1;V01:K0:3a+TGm33TIc=:J3Zis2LJYDyruyBiT1aEsf IowRyYQPGOmoTpMQDwysEuaeV6aURsy8ZXSvYPkThi4OJCR/tJkM3zzwFbO+cr7KnADsGlPpL m7wM6v56avurRcmJjqGhCymuLk8X2/3lHFL55ZcJ2n6Atowj+y7SEXxlgMpSgWm6/4ZRbRILD dN88HxeKBZeGUAmX7hOLJ7i6ikuFcqh4u2IA86QUykT7x5YC2aV6Ingxetdfg7o4+ufrJJdoF nmlARjsVINPPhm+aUnDUrDZBiVjYeAmYSUWATCzULqrUxzmFrJ9ez569+ZyeKq6Ho3NWFz0Md HP3FjvNze/IrZ5hO5KykAqBZJwynDPMKoma+DhMGo7H2tFGl2a0za497c8m2aLyqZHk3EErsy sIySAjw/lkTjbujRZCHs35nCl7AZv1+O0enAN5YkraZPepIoyJHUy+KDYU9MTFNTAp3IVIGb9 /VfutMkrwx64MoAtRmhAG8LgLul/JgSPHK7uLbhSMzItqf4G1fwkSZqgD/8Tw/szNidG32v+D ghIY8wcnio+9Hoi9iupgoNO83tFX+BeJg85ej93qAtXIMiYRpn9tmKMk4k8c0q5PZGIE7AfeN eQW++IF/kJNwFJp+cVF9XmxVjRL/g0XBMjweW66Q4/xgbqO619tAH7cyHpmb2kPDdtpqYvF+t zIvOp6Y5GShPgmmdZkfG8XyirBZGalg2PU9RLJK7c9yIGXpLEdJYvwoRgpSAHCDogRE1FBEs+ 2rMEN4mR9JhZ5tQfp3+U5Xh5KTkl+H1fCnZotVp4GbfSlHO2UAWA0MrlQS2x+vGUdeUt6q65d xjET/JD Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 28 Hi, as developer of libburn i got several user complaints about poor concurrent throughput. Since last year i suffer from it myself on kernel 3.16 of Debian 8. Before i had 2.6.18 which did very well in that aspect. An old workaround for IDE master-slave concurrency problems brings a certain degree of relief on some drives. See http://libburnia-project.org/wiki/ConcurrentLinuxSr But the much better solution would be to remove the need for the global lock shared by all ioctl(SG_IO) to all /dev/sr*. Given the old reports of Otto Meta about possible race conditions with drives at the same IDE controller, and the rareness of IDE attached drives nowadays, i propose to keep the global sr_mutex lock for IDE attached drives. Question is how this can be determined from the device parameters of the calls in question: struct block_device *bdev struct gendisk *disk struct scsi_cd *cd Have a nice day :) Thomas