Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings
From: Christoph Hellwig
Date: Mon Jan 09 2017 - 12:22:16 EST
On Mon, Jan 09, 2017 at 08:21:43AM -0800, Christoph Hellwig wrote:
> Having it global is kinda weird anyway. But looking the code none
> of the commands actually using is in the paging path, so it could
> simply be replaced with a dynamic allocation in ata_scsi_rbuf_fill
> for the actually needed size, which often will be very small,
> or sometimes even 0.
Prototype here, only tested with a simple mkfs.xfs and some I/O on
AHCI so far:
http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/libata-kill-ata_scsi_rbuf