diff options
author | Matthew R. Ochs | 2017-04-12 14:15:29 -0500 |
---|---|---|
committer | Martin K. Petersen | 2017-04-13 22:55:41 -0400 |
commit | e2ef33fa5958c51ebf0c6f18db19fe927e2185fa (patch) | |
tree | 3d70be5e18ab9f6574b2e72f0e1c7384a2a2ba43 /block/blk-settings.c | |
parent | fcc87e74a987dc9c0c85f53546df944ede76486a (diff) |
scsi: cxlflash: Improve asynchronous interrupt processing
The method used to decode asynchronous interrupts involves unnecessary loops
to match up bits that are set with corresponding entries in the asynchronous
interrupt information table. This algorithm is wasteful and does not scale
well as new status bits are supported.
As an improvement, use the for_each_set_bit() service to iterate over the
asynchronous status bits and refactor the information table such that it can
be indexed by bit position.
Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions