mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 06:36:27 +00:00
scst_user: Convert sgv_purge_interval to jiffies before use
The sgv_purge_interval from userland is passed down without conversion to jiffies. Yet, if it is zero, the default value is (60 * HZ). Convert to jiffies before passing down. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5274 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2973,7 +2973,7 @@ static int dev_user_register_dev(struct file *file,
|
||||
dev->pool = sgv_pool_create(dev->devtype.name, sgv_no_clustering,
|
||||
dev_desc->sgv_single_alloc_pages,
|
||||
dev_desc->sgv_shared,
|
||||
dev_desc->sgv_purge_interval);
|
||||
dev_desc->sgv_purge_interval * HZ);
|
||||
if (dev->pool == NULL) {
|
||||
res = -ENOMEM;
|
||||
goto out_deinit_threads;
|
||||
@@ -2990,7 +2990,7 @@ static int dev_user_register_dev(struct file *file,
|
||||
sgv_tail_clustering,
|
||||
dev_desc->sgv_single_alloc_pages,
|
||||
dev_desc->sgv_shared,
|
||||
dev_desc->sgv_purge_interval);
|
||||
dev_desc->sgv_purge_interval * HZ);
|
||||
if (dev->pool_clust == NULL) {
|
||||
res = -ENOMEM;
|
||||
goto out_free0;
|
||||
|
||||
Reference in New Issue
Block a user