From: Asai Thambi S P Date: Wed, 30 May 2012 01:44:01 +0000 (-0700) Subject: mtip32xx: minor performance tweak X-Git-Tag: v3.5-rc1~26^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=377b8fc6d70aab90ccfc053630c65835defbc3f8;p=~emulex%2Finfiniband.git mtip32xx: minor performance tweak When checking for command completions if the register value is zero, proceed to next register. Signed-off-by: Asai Thambi S P Signed-off-by: Jens Axboe --- diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index cd271d5e1b7..29735316730 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -970,6 +970,8 @@ static inline void mtip_process_sdbf(struct driver_data *dd) /* walk all bits in all slot groups */ for (group = 0; group < dd->slot_groups; group++) { completed = readl(port->completed[group]); + if (!completed) + continue; /* clear completed status register in the hardware.*/ writel(completed, port->completed[group]);