ligd 1a21445877 pipes: use priv refs instead of inode to resolve memleak
thread1                 thread2
open pipe               open pipe
close()
-> pipecommon_close()
  -> check inode refs
  -> do NOT free dev    close()
                        -> pipecommon_close()
                          -> check inode refs
                          -> do NOT free dev
-> inode_release
   inode refs--
                        -> inode_release
                           inode refs--

Then, you will see the pipe hasn't free its resource, memleak

Resolve:
replace the inode refs with priv refs

Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-08-23 16:14:39 -03:00
..
2024-08-23 20:18:17 +08:00
2023-12-09 13:44:46 -08:00
2024-08-07 12:13:38 -03:00
2023-09-22 13:51:00 +08:00
2023-10-17 13:43:43 +08:00
2024-06-28 09:30:42 +02:00
2023-07-08 13:50:48 +08:00
2024-04-16 19:09:12 +08:00
2024-07-03 17:31:23 +08:00
2024-08-07 12:13:38 -03:00
2024-08-21 02:01:01 +08:00
2024-01-25 09:09:30 -08:00
2024-01-25 09:09:30 -08:00