From: Boaz Harrosh Date: Tue, 31 Mar 2009 17:05:29 +0000 (+0300) Subject: [SCSI] libosd: fix blk_put_request called from within request_end_io X-Git-Tag: v2.6.30-rc1~185^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c0baccadc86d9f07e663dd255751dd70e461ba3;p=pandora-kernel.git [SCSI] libosd: fix blk_put_request called from within request_end_io A fix for a very serious and stupid bug in osd_initiator. It used to call blk_put_request() regardless of if it was from the end_io callback or if called after a sync execution. It should call the unlocked version __blk_put_request() instead. Also fixed is the remove of _abort_unexecuted_bios hack, and use of blk_end_request(,-ERROR,) to deallocate half baked requests. I've audited the code and it should be safe. Reported and Tested-by: Xu Yang Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley --- Reading git-diff-tree failed