This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new e43194f5ea Revert "rpmsgfs: cache statfs result in case of deadlock"
e43194f5ea is described below

commit e43194f5eab65c561acaf1164cfc9a81becb0546
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Thu Sep 7 13:28:50 2023 +0800

    Revert "rpmsgfs: cache statfs result in case of deadlock"
    
    This reverts commit 572d8650340550a467d4583eb7d5c2b184eb7475.
---
 fs/rpmsgfs/rpmsgfs.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/fs/rpmsgfs/rpmsgfs.c b/fs/rpmsgfs/rpmsgfs.c
index 676a6094d3..d2c777b793 100644
--- a/fs/rpmsgfs/rpmsgfs.c
+++ b/fs/rpmsgfs/rpmsgfs.c
@@ -83,7 +83,6 @@ struct rpmsgfs_mountpt_s
   char                       fs_root[PATH_MAX];
   void                       *handle;
   int                        timeout;  /* Connect timeout */
-  struct statfs              statfs;
 };
 
 /****************************************************************************
@@ -1221,19 +1220,7 @@ static int rpmsgfs_statfs(FAR struct inode *mountpt, FAR 
struct statfs *buf)
       return ret;
     }
 
-  if (fs->statfs.f_type == RPMSGFS_MAGIC)
-    {
-      memcpy(buf, &fs->statfs, sizeof(struct statfs));
-      nxmutex_unlock(&fs->fs_lock);
-      return 0;
-    }
-
-  /* Call the host fs to perform the statfs */
-
   ret = rpmsgfs_client_statfs(fs->handle, fs->fs_root, buf);
-  buf->f_type = RPMSGFS_MAGIC;
-
-  memcpy(&fs->statfs, buf, sizeof(struct statfs));
 
   nxmutex_unlock(&fs->fs_lock);
   return ret;

Reply via email to