[PATCH 0/3] xfs_repair: pthread creation failure recovery fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jeff Mahoney <jeffm@xxxxxxxx>

Hi all -

I recently had a bug report where xfs_repair in the dracut initramfs
environment was crashing.  It turned out to be due to systemd setting
up cgroup pids limits and pthread_create was failing.  The "real" fix
is to remove that limit, but it created a easily reproducable scenario
with which to test thread creation failure recovery.  A combination of
a small pids limit and MALLOC_PERTURB_ shook out a few bugs.  There's
more work to be done here since it should probably fall back to single
threads whenever we can't create a thread, but I only tackled the cases
that were already being handled gracefully instead of erroring out.

-Jeff

---

Jeff Mahoney (3):
  xfs_repair: clear pthread_t when pthread_create fails
  xfs_repair: add prefetch trace calls to debug thread creation failures
  xfs_repair: fix thread creation failure recovery

 repair/prefetch.c | 49 ++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 42 insertions(+), 7 deletions(-)

-- 
2.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux