From: sumit.saxena@avagotech.com Date: Thu, 15 Oct 2015 08:10:04 +0000 (+0530) Subject: megaraid_sas: Do not use PAGE_SIZE for max_sectors X-Git-Tag: v3.2.74~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9c1dca8eb475a3f3e216cccf18f56dcdc7e6d8;p=pandora-kernel.git megaraid_sas: Do not use PAGE_SIZE for max_sectors commit 357ae967ad66e357f78b5cfb5ab6ca07fb4a7758 upstream. Do not use PAGE_SIZE marco to calculate max_sectors per I/O request. Driver code assumes PAGE_SIZE will be always 4096 which can lead to wrongly calculated value if PAGE_SIZE is not 4096. This issue was reported in Ubuntu Bugzilla Bug #1475166. Signed-off-by: Sumit Saxena Signed-off-by: Kashyap Desai Reviewed-by: Tomas Henzl Reviewed-by: Martin K. Petersen Signed-off-by: Martin K. Petersen Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed