[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.21.9999.2010071001520.28578@irv1user01.caveonetworks.com>
Date: Wed, 7 Oct 2020 10:05:05 -0700
From: Arun Easi <aeasi@...vell.com>
To: Daniel Wagner <dwagner@...e.de>
CC: Nilesh Javali <njavali@...vell.com>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] qla2xxx: Do not consume srb greedily
On Tue, 29 Sep 2020, 12:38am, Daniel Wagner wrote:
> qla2xx_process_get_sp_from_handle() will clear the slot which the
> current srb is stored. So this function has a side effect. Therefore,
> we can't use it in qla24xx_process_mbx_iocb_response() to check
> for consistency and later again in qla24xx_mbx_iocb_entry().
>
> Let's move the consistency check directly into
> qla24xx_mbx_iocb_entry() and avoid the double call or any open coding
> of the qla2xx_process_get_sp_from_handle() functionality.
>
> Fixes: 31a3271ff11b ("scsi: qla2xxx: Handle incorrect entry_type entries")
> Signed-off-by: Daniel Wagner <dwagner@...e.de>
That was a nasty one, good that you caught it soon.
Reviewed-by: Arun Easi <aeasi@...vell.com>
Regards,
-Arun
Powered by blists - more mailing lists