summaryrefslogtreecommitdiff
path: root/drivers/sfi
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-09-13 23:08:42 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-24 03:20:34 +0000
commit4911e3ccbec047ed1f728e19a70ad87729a3fb01 (patch)
tree710a5799da6c38843560b412b7918b7d3c63bf29 /drivers/sfi
parentd3df7825aed2e69e12732f9e32ef9093b01302d8 (diff)
target: simplify transport_put_cmd
Inline two simple functions only used by it, and replace a goto with a simple if else construct. Note that the code moved from transport_dec_and_check seems fairly buggy - the atomic_read check on a variable where we'd do an atomic_dec_and_test looks racy if we'll ever get someone increment it without the lock held around them (which it looks like we do), and not decrementing the second counter if the first one doesn't hit zero also at least needs an explanation. (nab: Fix transport_put_cmd breakage) Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/sfi')
0 files changed, 0 insertions, 0 deletions