aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorTomer Tayar <Tomer.Tayar@qlogic.com>2016-03-09 09:16:24 +0200
committerDavid S. Miller <davem@davemloft.net>2016-03-11 15:20:20 -0500
commit5529bad98f10f742e3ab490733bed8e108508759 (patch)
tree8564fbcf435afad3c794c1b965e333fb839ef419 /drivers/nvme
parentqed: Prevent MF link notifications (diff)
downloadlinux-dev-5529bad98f10f742e3ab490733bed8e108508759.tar.xz
linux-dev-5529bad98f10f742e3ab490733bed8e108508759.zip
qed: Major changes to MB locking
Driver interaction with the managemnt firmware is done via mailbox commands which the management firmware periodically sample, as well as placing of additional data in set places in the shared memory. Each PF has a single designated mailbox address, and all flows that require messaging to the management should use it. This patch does 2 things: 1. It re-defines the critical section surrounding the mailbox sending - that section should include the setting of the shared memory as well as the sending of the command [otherwise a race might send a command with the data of a different command]. 2. It moves the locking scheme from using mutices into using spinlocks. This lays the groundwork for sending MFW commands from non-sleepable contexts. Signed-off-by: Tomer Tayar <Tomer.Tayar@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions