diff options
author | Matthew Wilcox <[email protected]> | 2018-07-11 14:02:21 -0700 |
---|---|---|
committer | Dominique Martinet <[email protected]> | 2018-08-13 09:21:44 +0900 |
commit | b5303be2bee3c8b29de3f7f4ea8ae00c4e816760 (patch) | |
tree | ec2fe0f66140706c972f18502459d868aa2ec3a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2d58f63f72f28ba297a9ae344a5b5f0cf75bcd94 (diff) |
9p: Change p9_fid_create calling convention
Return NULL instead of ERR_PTR when we can't allocate a FID. The ENOSPC
return value was getting all the way back to userspace, and that's
confusing for a userspace program which isn't expecting read() to tell it
there's no space left on the filesystem. The best error we can return to
indicate a temporary failure caused by lack of client resources is ENOMEM.
Maybe it would be better to sleep until a FID is available, but that's
not a change I'm comfortable making.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Reviewed-by: Jun Piao <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Reviewed-by: Yiwen Jiang <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Ron Minnich <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions