All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: linux-scsi@vger.kernel.org
Cc: Torsten Luettgert <ml-lkml@enda.eu>,
	Bernd Kardatzki <Bernd.Kardatzki@med.uni-tuebingen.de>
Subject: fix command completion races in the 3ware drivers
Date: Thu, 23 Apr 2015 09:48:48 +0200	[thread overview]
Message-ID: <1429775331-1017-1-git-send-email-hch@lst.de> (raw)

All three 3ware drivers complete the scsi command before calling
scsi_dma_unmap.  This is racy as the command can get torn down
once ->scsi_done has been called, but until 3.17 we papered
over this by taking the host lock in the completion pass, which
masked out this race for all common workloads.


             reply	other threads:[~2015-04-23  7:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23  7:48 Christoph Hellwig [this message]
2015-04-23  7:48 ` [PATCH 1/3] 3w-sas: fix command completion race Christoph Hellwig
2015-04-23 17:55   ` adam radford
2015-04-23  7:48 ` [PATCH 2/3] 3w-xxxx: " Christoph Hellwig
2015-04-23 17:56   ` adam radford
2015-04-23  7:48 ` [PATCH 3/3] 3w-9xxx: " Christoph Hellwig
2015-04-23 17:56   ` adam radford

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=1429775331-1017-1-git-send-email-hch@lst.de \
    --to=hch@lst.de \
    --cc=Bernd.Kardatzki@med.uni-tuebingen.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=ml-lkml@enda.eu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.