lkml.org 
[lkml]   [2019]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectmount cgroup with "already mounted or cgroup busy"
Date
Hi:

I meet a issue, and not sure if it is normal
Using the below script, the last line mount will fail after unmount
And it will fail until reboot system

mount -t cgroup -o cpu,cpuset xx cgroup
mkdir cgroup/x
rmdir cgroup/x
umount cgroup
mount -t cgroup -o cpu xx cgroup
mount: xx already mounted or cgroup busy

but if I add sleep, it will success

mount -t cgroup -o cpu,cpuset xx cgroup
mkdir cgroup/x
rmdir cgroup/x
sleep 10 <<<<==========
umount cgroup
mount -t cgroup -o cpu xx cgroup

- Li RongQing


\
 
 \ /
  Last update: 2019-10-30 10:33    [W:0.026 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site