* [PATCH] scsi: don't reinitialize adapter's req_table
@ 2016-08-21 2:39 Shawn Lin
2016-08-25 18:45 ` Bradley Grove
2016-08-26 2:29 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Shawn Lin @ 2016-08-21 2:39 UTC (permalink / raw)
To: Bradley Grove, jejb, Martin K. Petersen
Cc: linux-scsi, linux-kernel, Shawn Lin
req_table is allocate by kzalloc, so we don't need to
zero it again anyway.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---
drivers/scsi/esas2r/esas2r_init.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c
index 78ce4d61..d6e53ae 100644
--- a/drivers/scsi/esas2r/esas2r_init.c
+++ b/drivers/scsi/esas2r/esas2r_init.c
@@ -963,10 +963,6 @@ bool esas2r_init_adapter_struct(struct esas2r_adapter *a,
/* initialize the allocated memory */
if (test_bit(AF_FIRST_INIT, &a->flags)) {
- memset(a->req_table, 0,
- (num_requests + num_ae_requests +
- 1) * sizeof(struct esas2r_request *));
-
esas2r_targ_db_initialize(a);
/* prime parts of the inbound list */
--
2.3.7
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: don't reinitialize adapter's req_table
2016-08-21 2:39 [PATCH] scsi: don't reinitialize adapter's req_table Shawn Lin
@ 2016-08-25 18:45 ` Bradley Grove
2016-08-26 2:29 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Bradley Grove @ 2016-08-25 18:45 UTC (permalink / raw)
To: Shawn Lin, Bradley Grove, jejb, Martin K. Petersen
Cc: linux-scsi, linux-kernel
Acked-by: Bradley Grove <bgrove@attotech.com>
On 08/20/2016 10:39 PM, Shawn Lin wrote:
> req_table is allocate by kzalloc, so we don't need to
> zero it again anyway.
>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
> ---
>
> drivers/scsi/esas2r/esas2r_init.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c
> index 78ce4d61..d6e53ae 100644
> --- a/drivers/scsi/esas2r/esas2r_init.c
> +++ b/drivers/scsi/esas2r/esas2r_init.c
> @@ -963,10 +963,6 @@ bool esas2r_init_adapter_struct(struct esas2r_adapter *a,
>
> /* initialize the allocated memory */
> if (test_bit(AF_FIRST_INIT, &a->flags)) {
> - memset(a->req_table, 0,
> - (num_requests + num_ae_requests +
> - 1) * sizeof(struct esas2r_request *));
> -
> esas2r_targ_db_initialize(a);
>
> /* prime parts of the inbound list */
>
This electronic transmission and any attachments hereto are intended only for the use of the individual or entity to which it is addressed and may contain confidential information belonging to ATTO Technology, Inc. If you have reason to believe that you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this electronic transmission is strictly prohibited. If you have reason to believe that you have received this transmission in error, please notify ATTO immediately by return e-mail and delete and destroy this communication.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: don't reinitialize adapter's req_table
2016-08-21 2:39 [PATCH] scsi: don't reinitialize adapter's req_table Shawn Lin
2016-08-25 18:45 ` Bradley Grove
@ 2016-08-26 2:29 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2016-08-26 2:29 UTC (permalink / raw)
To: Shawn Lin
Cc: Bradley Grove, jejb, Martin K. Petersen, linux-scsi, linux-kernel
>>>>> "Shawn" == Shawn Lin <shawn.lin@rock-chips.com> writes:
Shawn> req_table is allocate by kzalloc, so we don't need to zero it
Shawn> again anyway.
Applied to 4.9/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-26 4:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-21 2:39 [PATCH] scsi: don't reinitialize adapter's req_table Shawn Lin
2016-08-25 18:45 ` Bradley Grove
2016-08-26 2:29 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®