Skip to content

Commit ff97f23

Browse files
cmaiolinodjwong
authored andcommitted
xfs: fix max_retries _show and _store functions
max_retries _show and _store functions should test against cfg->max_retries, not cfg->retry_timeout Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
1 parent 721a0ed commit ff97f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/xfs/xfs_sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ max_retries_show(
396396
int retries;
397397
struct xfs_error_cfg *cfg = to_error_cfg(kobject);
398398

399-
if (cfg->retry_timeout == XFS_ERR_RETRY_FOREVER)
399+
if (cfg->max_retries == XFS_ERR_RETRY_FOREVER)
400400
retries = -1;
401401
else
402402
retries = cfg->max_retries;
@@ -422,7 +422,7 @@ max_retries_store(
422422
return -EINVAL;
423423

424424
if (val == -1)
425-
cfg->retry_timeout = XFS_ERR_RETRY_FOREVER;
425+
cfg->max_retries = XFS_ERR_RETRY_FOREVER;
426426
else
427427
cfg->max_retries = val;
428428
return count;

0 commit comments

Comments
 (0)