diff options
author | Chao Leng <lengchao@huawei.com> | 2020-10-22 10:15:15 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-11-03 10:26:02 +0100 |
commit | d6f66210f4b1aa2f5944f0e34e0f8db44f499f92 (patch) | |
tree | 856376e07969f38cda1795b6c7ca46043d50630b /scripts/genksyms/genksyms.c | |
parent | 3017013dcc82a4862bd1e140f8b762cfc594008d (diff) |
nvme-tcp: avoid race between time out and tear down
Now use teardown_lock to serialize for time out and tear down. This may
cause abnormal: first cancel all request in tear down, then time out may
complete the request again, but the request may already be freed or
restarted.
To avoid race between time out and tear down, in tear down process,
first we quiesce the queue, and then delete the timer and cancel
the time out work for the queue. At the same time we need to delete
teardown_lock.
Signed-off-by: Chao Leng <lengchao@huawei.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/genksyms/genksyms.c')
0 files changed, 0 insertions, 0 deletions