From: Sumit.Saxena@avagotech.com Date: Mon, 5 Jan 2015 14:36:18 +0000 (+0530) Subject: megaraid_sas: complete outstanding IOCTLs before killing adapter X-Git-Tag: fixes-v4.0-rc1~143^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8dd61eff2780c481fcf919c1572e16e397c714e;p=pandora-kernel.git megaraid_sas: complete outstanding IOCTLs before killing adapter Driver calls megasas_complete_cmd() to call wake_up() for each MFI frame that was issued through the ioctl() interface prior to the kill adapter. This ensures userspace ioctl() system calls issued just before a kill adapter don't get stuck in wait state and IOCTLs are returned to the application. Cc: Signed-off-by: Sumit Saxena Signed-off-by: Chaitra Basappa Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed