History

block: remove the nr_task field from struct io_context

Nothing ever looks at ->nr_tasks, so remove it.

Christoph Hellwig committed 4 years ago

Commit 8a2ba171 parent d62cbcf2 files · +0 −4Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/iocontext.h+0−1
@@ -99,7 +99,6 @@ struct io_cq { · 98 unmodified lines
99struct io_context {99struct io_context {
100 atomic_long_t refcount;100 atomic_long_t refcount;
101 atomic_t active_ref;101 atomic_t active_ref;
102 atomic_t nr_tasks;
103 102
104 /* all the fields below are protected by this lock */103 /* all the fields below are protected by this lock */
105 spinlock_t lock;104 spinlock_t lock;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t