summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-02-17 17:09:12 +0300
committerSteve French <sfrench@us.ibm.com>2012-03-21 11:27:35 -0500
commitfc40f9cf828908e91d9af820e9300a9d42fbbd72 (patch)
tree1d0aa12f099ea9c759321d5e75967e152fcf4b11 /fs/cifs/cifssmb.c
parent1daaae8fa4afe3df78ca34e724ed7e8187e4eb32 (diff)
downloadop-kernel-dev-fc40f9cf828908e91d9af820e9300a9d42fbbd72.zip
op-kernel-dev-fc40f9cf828908e91d9af820e9300a9d42fbbd72.tar.gz
CIFS: Simplify inFlight logic
by making it as unsigned integer and surround access with req_lock from server structure. Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index cd66b76..d7cbcfa 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -721,7 +721,7 @@ cifs_echo_callback(struct mid_q_entry *mid)
struct TCP_Server_Info *server = mid->callback_data;
DeleteMidQEntry(mid);
- atomic_dec(&server->inFlight);
+ dec_in_flight(server);
wake_up(&server->request_q);
}
@@ -1674,7 +1674,7 @@ cifs_readv_callback(struct mid_q_entry *mid)
queue_work(system_nrt_wq, &rdata->work);
DeleteMidQEntry(mid);
- atomic_dec(&server->inFlight);
+ dec_in_flight(server);
wake_up(&server->request_q);
}
@@ -2115,7 +2115,7 @@ cifs_writev_callback(struct mid_q_entry *mid)
queue_work(system_nrt_wq, &wdata->work);
DeleteMidQEntry(mid);
- atomic_dec(&tcon->ses->server->inFlight);
+ dec_in_flight(tcon->ses->server);
wake_up(&tcon->ses->server->request_q);
}
OpenPOWER on IntegriCloud