All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v3, 0/2] cgroup/cgroup_regression_test: Fix umount failure
@ 2021-07-16 13:56 Leo Liang
  0 siblings, 0 replies; only message in thread
From: Leo Liang @ 2021-07-16 13:56 UTC (permalink / raw)
  To: ltp

The test sequence
	mount -t cgroup -o <controllers> <path>
	mkdir <path>/<dir>
	rmdir <path>/<dir>
	umount <path>
	mount -t cgroup -o <controllers> <path>
would easily fail at the last mount with -EBUSY on certain platform.

Adding a little delay between "rmdir" and "umount" could fix the problem,
so use tst_umount API instead of umount in "rmdir, umount" sequence.

Changes since v1
- Use "tst_umount" instead of "sync" as suggested
- Make "tst_umount" work with argument that has terminating slash

Changes since v2
- Filter out the trailing slash instead of using mountpoint command

Leo Yu-Chi Liang (2):
  lib/tst_test.sh: Make tst_umount work with argument that has
    terminating slash
  cgroup/cgroup_regression_test: Fix umount failure

 .../controllers/cgroup/cgroup_regression_test.sh       | 10 +++++-----
 testcases/lib/tst_test.sh                              |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-16 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-16 13:56 [LTP] [PATCH v3, 0/2] cgroup/cgroup_regression_test: Fix umount failure Leo Liang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.