linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] fix INT_MAX readdir hang, plus cleanups
@ 2013-06-04 22:17 Zach Brown
  2013-06-04 22:17 ` [PATCH 1/6] btrfs: set readdir f_pos only after filldir Zach Brown
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Zach Brown @ 2013-06-04 22:17 UTC (permalink / raw)
  To: linux-btrfs

Hi gang,

I finally sat down to fix that readdir hang that has been in the back
of my mind for a while.  I *hope* that the fix is pretty simple: just
don't manufacture a fake f_pos, I *think* we can abuse f_version as an
indicator that we shouldn't return entries.  Does this look reasonable?

We still have the problem that we can generate valid large f_pos values
that can confuse 32bit userspace, but that's a different problem.  I
think we'll want filldir generation of EOVERFLOW like what exists for
large inodes. 

The rest of the patches are cleanups that I saw when absorbing the
code.  It's all lightly tested with xfstests but it wouldn't surprise
me if I missed something so review is appreciated.

Thanks!

- z

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-07-11 23:19 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 22:17 [PATCH 0/6] fix INT_MAX readdir hang, plus cleanups Zach Brown
2013-06-04 22:17 ` [PATCH 1/6] btrfs: set readdir f_pos only after filldir Zach Brown
2013-06-05  1:19   ` Miao Xie
2013-06-04 22:17 ` [PATCH 2/6] btrfs: fix readdir hang with offsets past INT_MAX Zach Brown
2013-06-04 22:17 ` [PATCH 3/6] btrfs: trivial delayed item readdir list cleanups Zach Brown
2013-06-04 22:17 ` [PATCH 4/6] btrfs: simplify finding next/prev delayed items Zach Brown
2013-06-04 22:17 ` [PATCH 5/6] btrfs: add helper to get delayed item root Zach Brown
2013-06-04 22:18 ` [PATCH 6/6] btrfs: get fewer delayed item refs during readdir Zach Brown
2013-06-04 23:16 ` [PATCH 0/6] fix INT_MAX readdir hang, plus cleanups Chris Mason
2013-06-04 23:26   ` Zach Brown
2013-06-05  2:34     ` Miao Xie
2013-06-05 13:36       ` David Sterba
2013-06-06  1:35         ` Miao Xie
2013-06-06 13:55           ` David Sterba
2013-06-06 14:32             ` Chris Mason
2013-06-10 22:39     ` Zach Brown
2013-06-12 12:59       ` Chris Mason
2013-07-01 12:54 ` Josef Bacik
2013-07-01 13:18   ` Chris Mason
2013-07-01 16:10   ` Zach Brown
2013-07-01 17:18     ` Chris Mason
2013-07-11 23:19   ` Zach Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).