]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sd: Reduce buffer size for vpd request
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Mon, 23 Sep 2013 12:47:32 +0000 (14:47 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:58:12 +0000 (09:58 +0100)
commite23ccf036d5f48b6cbd722c500c9fd4eb8161141
tree0a7d02f6129de16d39abf6100a291b5b149ffa95
parentb25279e2a8a14d30bb76893e4b53c0a095e07294
[SCSI] sd: Reduce buffer size for vpd request

Somehow older areca firmware versions have issues with
scsi_get_vpd_page() and a large buffer, the firmware
seems to crash and the scsi error-handler will start endless
recovery retries.
Limiting the buf-size to 64-bytes fixes this issue with older
firmware versions (<1.49 for my controller).

Fixes a regression with areca controllers and older firmware versions
introduced by commit: 338893ed488f16e0f7613b1dcc4cac33e312d5b7

Reported-by: Nix <nix@esperi.org.uk>
Tested-by: Nix <nix@esperi.org.uk>
Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Cc: stable@vger.kernel.org # delay inclusion for 2 months for testing
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sd.c