Re: [PATCH v4 15/15] scsi_debug: Maintain write statistics per group number

Bart Van Assche
2023-11-21T19:25:11Z

On 11/14/23 13:41, Bart Van Assche wrote:
> +static ssize_t group_number_stats_store(struct device_driver *ddp,
> + const char *buf,
> + size_t count)
> +{
> + int i;
> +
> + for (i = 0; i < ARRAY_SIZE(writes_by_group_number); i++)
> + atomic_long_set(&writes_by_group_number[i], 0);
> +
> + return 0;
> +}

There is a bug in this patch: "return 0" above should be changed into
"return count". I will repost this patch series.

Bart.