From: Stefan Weinhuber Date: Tue, 19 Feb 2008 14:29:27 +0000 (+0100) Subject: [S390] dasd: fix locking in __dasd_device_process_final_queue X-Git-Tag: v2.6.25-rc3~121^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03513bccad33667ed738cfd96dc5757e539e0bdb;p=pandora-kernel.git [S390] dasd: fix locking in __dasd_device_process_final_queue After setting the status of the cqr and releasing the lock for the block cqr queue, we call the cqr callback function, which will usually just trigger the dasd_block_tasklet. But when the tasklet is already running the cqr might be processed before we invoke the callback function. In rare cases the callback pointer may already be invalid by the time we want to call it, which will result in a panic. Solution: Call the callback function first and then release the lock. Signed-off-by: Stefan Weinhuber Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed