| To: | Al Viro <viro@xxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: xfs_file_splice_read: possible circular locking dependency detected |
| From: | Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 13 Sep 2016 20:49:58 -0700 |
| Cc: | Dave Chinner <david@xxxxxxxxxxxxx>, CAI Qian <caiqian@xxxxxxxxxx>, linux-xfs <linux-xfs@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, Jens Axboe <axboe@xxxxxxxxx>, Nick Piggin <npiggin@xxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=bkQrcW6uZuIhgBkmQZzvB05lCpFZ/yl2voASHawgagw=; b=BMBmD5CEgZU3E3ei56zl63949cTjD4RY160WXwlQeF6k8dz3ZwoCrlSIpPP5u1tRwP vSwswZw+aLPIL0dP6pmrIIGMxmWYdip5jE+hh/QJjTHtmkYhvv24AMEtqQxOtqQWghWq Fld3abCkraBnm9apo4DWRz+tHX7udZTdpiP1CTip7xU17fPPMGNkcxlEaGH7fv6vEwKW zEHbZzDzF7VwQAnDIKc5BZQDX7B3tbW1Ogg+NpZoGZgZ/5AguVCjsqF4wNxinigJx+yd pPmhr3rr2Xg4Ru1KHBHTx06ytCPn1E2c/8XoYHhHK6LthzyGPmIvlY13YUVWGFmTieeH s1ww== |
| In-reply-to: | <20160914031648.GB2356@xxxxxxxxxxxxxxxxxx> |
| References: | <CA+55aFzg+Q0DzFNBR9TeL13_yfrfFwHu9OrZe--Zpje0EeN4Cw@xxxxxxxxxxxxxx> <20160908213835.GY30056@dastard> <20160908235521.GL2356@xxxxxxxxxxxxxxxxxx> <20160909015324.GD30056@dastard> <CA+55aFzohsUXj_3BeFNr2t50Wm=G+7toRDEz=Tk7VJqP3n1hXQ@xxxxxxxxxxxxxx> <CA+55aFxrqCng2Qxasc9pyMrKUGFjo==fEaFT1vkH9Lncte3RgQ@xxxxxxxxxxxxxx> <20160909023452.GO2356@xxxxxxxxxxxxxxxxxx> <CA+55aFwHQMjO4-vtfB9-ytc=o+DRo-HXVGckvXLboUxgpwb7_g@xxxxxxxxxxxxxx> <20160909221945.GQ2356@xxxxxxxxxxxxxxxxxx> <CA+55aFzTOOB6oEVaaGD0N7Uznk-W9+ULPwzsxS_L_oZqGVSeLA@xxxxxxxxxxxxxx> <20160914031648.GB2356@xxxxxxxxxxxxxxxxxx> |
| Sender: | linus971@xxxxxxxxx |
On Tue, Sep 13, 2016 at 8:16 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
>> So feel free to try maxing out using only a small handful of
>> pipe_buffer entries. Returning partial IO from splice() is fine.
>
> Are you sure that nobody's growing the output pipe buffer before
> doing splice() into it as a way to reduce the amount of iterations?
Do we care?
There's a lot of people who use large buffers. That doesn't
necessarily mean that it is the right thing to do. A small buffer that
we can allocate on-stack might well be better even if it causes more
iterations.
I'd also like to simplify the splice code if at all possible.
Particularly as there really aren't necessarily all that many actual
users of it. So if we can say "screw that" and just allocate a small
buffer on stack, and people end up iterating a bit more, so what? The
point of splice is to avoid the data copies and VM games, not to make
big buffers.
Linus
|
| Previous by Date: | Re: xfs_file_splice_read: possible circular locking dependency detected, Nicholas Piggin |
|---|---|
| Next by Date: | Re: xfs_file_splice_read: possible circular locking dependency detected, Linus Torvalds |
| Previous by Thread: | Re: xfs_file_splice_read: possible circular locking dependency detected, Nicholas Piggin |
| Next by Thread: | Re: xfs_file_splice_read: possible circular locking dependency detected, Al Viro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |