public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Mitko Haralanov
	<mitko.haralanov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: IB/hfi1: Fix buffer cache races which may cause corruption
Date: Tue, 10 May 2016 19:57:09 +0300	[thread overview]
Message-ID: <20160510165709.GB19274@mwanda> (raw)
In-Reply-To: <20160510080432.6e651311-xX4rS/KCtk00dzWUSSna/BL4W9x8LtSr@public.gmane.org>

On Tue, May 10, 2016 at 08:04:32AM -0700, Mitko Haralanov wrote:
> On Tue, 10 May 2016 13:41:49 +0300
> Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> wrote:
> 
> > The patch e88c9271d9f8: "IB/hfi1: Fix buffer cache races which may
> > cause corruption" from Apr 12, 2016, leads to the following static
> > checker warning:
> > 
> > 	drivers/staging/rdma/hfi1/user_sdma.c:1053 sdma_cache_evict()
> > 	warn: test_bit() takes a bit number
> 
> Hi Dan,
> 
> Thank you for reporting this issue. I've double checked and while
> there is no correctness problem at this time, we will fix the
> set_bit()/test_bit() argument.

I don't understand what a "correctness problem" is...  It's obviously
wrong to use BIT(1) instead of BIT(0) but if it's done incorrectly every
time and nothing else is using BIT(1) then it might not affect run time.
Perhaps that's what you are saying?

regards,
dan carpenter

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

  parent reply	other threads:[~2016-05-10 16:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 10:41 IB/hfi1: Fix buffer cache races which may cause corruption Dan Carpenter
2016-05-10 15:04 ` Mitko Haralanov
     [not found]   ` <20160510080432.6e651311-xX4rS/KCtk00dzWUSSna/BL4W9x8LtSr@public.gmane.org>
2016-05-10 16:57     ` Dan Carpenter [this message]
2016-05-10 17:03       ` Mitko Haralanov

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=20160510165709.GB19274@mwanda \
    --to=dan.carpenter-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mitko.haralanov-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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