From: Bartlomiej Zolnierkiewicz Date: Fri, 2 Jan 2009 15:12:50 +0000 (+0100) Subject: ide: use per-device request queue locks (v2) X-Git-Tag: v2.6.29-rc1~540^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201bffa46466b4afdf7d29db8eca3fa5decb39c8;p=pandora-kernel.git ide: use per-device request queue locks (v2) * Move hack for flush requests from choose_drive() to do_ide_request(). * Add ide_plug_device() helper and convert core IDE code from using per-hwgroup lock as a request lock to use the ->queue_lock instead. * Remove no longer needed: - choose_drive() function - WAKEUP() macro - 'sleeping' flag from ide_hwif_t - 'service_{start,time}' fields from ide_drive_t This patch results in much simpler and more maintainable code (besides being a scalability improvement). v2: * Fixes/improvements based on review from Elias: - take as many requests off the queue as possible - remove now redundant BUG_ON() Cc: Elias Oltmanns Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed