From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Ben Widawsky <benjamin.widawsky@intel.com>,
Intel GFX <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Unref context on failed eb_create
Date: Sat, 5 Apr 2014 17:24:35 +0200 [thread overview]
Message-ID: <20140405152435.GY7225@phenom.ffwll.local> (raw)
In-Reply-To: <20140405062401.GC8475@nuc-i3427.alporthouse.com>
On Sat, Apr 05, 2014 at 07:24:01AM +0100, Chris Wilson wrote:
> On Fri, Apr 04, 2014 at 10:41:07PM -0700, Ben Widawsky wrote:
> > I opted to do this instead of grabbing the context reference after
> > eb_create since eb_create can potentially call the shrinker, and that
> > makes things very complicated. This simple patch balances the ref count
> > without requiring a great deal of review to make sure the shrinker path
> > is safe.
> >
> > Theoretically (by design) the shrinker can end up destroying a context,
> > which enforces the reasoning for doing the fix this way instead of
> > moving the reference to later in the function.
> >
> > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
>
> Even the whitespace fix is correct.
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2014-04-05 15:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-05 5:41 [PATCH] drm/i915: Unref context on failed eb_create Ben Widawsky
2014-04-05 6:24 ` Chris Wilson
2014-04-05 15:24 ` Daniel Vetter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140405152435.GY7225@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=benjamin.widawsky@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox