Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f377cb79
Commit
f377cb79
authored
Jul 01, 2015
by
Miklos Szeredi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: move list_del_init() from request_end() into callers
Signed-off-by:
Miklos Szeredi
<
mszeredi@suse.cz
>
parent
e96edd94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
fs/fuse/dev.c
fs/fuse/dev.c
+7
-1
No files found.
fs/fuse/dev.c
View file @
f377cb79
...
@@ -385,7 +385,6 @@ __releases(fc->lock)
...
@@ -385,7 +385,6 @@ __releases(fc->lock)
struct
fuse_iqueue
*
fiq
=
&
fc
->
iq
;
struct
fuse_iqueue
*
fiq
=
&
fc
->
iq
;
void
(
*
end
)
(
struct
fuse_conn
*
,
struct
fuse_req
*
)
=
req
->
end
;
void
(
*
end
)
(
struct
fuse_conn
*
,
struct
fuse_req
*
)
=
req
->
end
;
req
->
end
=
NULL
;
req
->
end
=
NULL
;
list_del_init
(
&
req
->
list
);
spin_lock
(
&
fiq
->
waitq
.
lock
);
spin_lock
(
&
fiq
->
waitq
.
lock
);
list_del_init
(
&
req
->
intr_entry
);
list_del_init
(
&
req
->
intr_entry
);
spin_unlock
(
&
fiq
->
waitq
.
lock
);
spin_unlock
(
&
fiq
->
waitq
.
lock
);
...
@@ -1291,6 +1290,7 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
...
@@ -1291,6 +1290,7 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
/* SETXATTR is special, since it may contain too large data */
/* SETXATTR is special, since it may contain too large data */
if
(
in
->
h
.
opcode
==
FUSE_SETXATTR
)
if
(
in
->
h
.
opcode
==
FUSE_SETXATTR
)
req
->
out
.
h
.
error
=
-
E2BIG
;
req
->
out
.
h
.
error
=
-
E2BIG
;
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
goto
restart
;
goto
restart
;
}
}
...
@@ -1304,15 +1304,18 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
...
@@ -1304,15 +1304,18 @@ static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
spin_lock
(
&
fc
->
lock
);
spin_lock
(
&
fc
->
lock
);
clear_bit
(
FR_LOCKED
,
&
req
->
flags
);
clear_bit
(
FR_LOCKED
,
&
req
->
flags
);
if
(
!
fpq
->
connected
)
{
if
(
!
fpq
->
connected
)
{
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
return
-
ENODEV
;
return
-
ENODEV
;
}
}
if
(
err
)
{
if
(
err
)
{
req
->
out
.
h
.
error
=
-
EIO
;
req
->
out
.
h
.
error
=
-
EIO
;
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
return
err
;
return
err
;
}
}
if
(
!
test_bit
(
FR_ISREPLY
,
&
req
->
flags
))
{
if
(
!
test_bit
(
FR_ISREPLY
,
&
req
->
flags
))
{
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
}
else
{
}
else
{
list_move_tail
(
&
req
->
list
,
&
fpq
->
processing
);
list_move_tail
(
&
req
->
list
,
&
fpq
->
processing
);
...
@@ -1932,6 +1935,7 @@ static ssize_t fuse_dev_do_write(struct fuse_conn *fc,
...
@@ -1932,6 +1935,7 @@ static ssize_t fuse_dev_do_write(struct fuse_conn *fc,
err
=
-
ENOENT
;
err
=
-
ENOENT
;
else
if
(
err
)
else
if
(
err
)
req
->
out
.
h
.
error
=
-
EIO
;
req
->
out
.
h
.
error
=
-
EIO
;
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
return
err
?
err
:
nbytes
;
return
err
?
err
:
nbytes
;
...
@@ -2073,6 +2077,7 @@ __acquires(fc->lock)
...
@@ -2073,6 +2077,7 @@ __acquires(fc->lock)
req
->
out
.
h
.
error
=
-
ECONNABORTED
;
req
->
out
.
h
.
error
=
-
ECONNABORTED
;
clear_bit
(
FR_PENDING
,
&
req
->
flags
);
clear_bit
(
FR_PENDING
,
&
req
->
flags
);
clear_bit
(
FR_SENT
,
&
req
->
flags
);
clear_bit
(
FR_SENT
,
&
req
->
flags
);
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
spin_lock
(
&
fc
->
lock
);
spin_lock
(
&
fc
->
lock
);
}
}
...
@@ -2150,6 +2155,7 @@ void fuse_abort_conn(struct fuse_conn *fc)
...
@@ -2150,6 +2155,7 @@ void fuse_abort_conn(struct fuse_conn *fc)
while
(
!
list_empty
(
&
to_end1
))
{
while
(
!
list_empty
(
&
to_end1
))
{
req
=
list_first_entry
(
&
to_end1
,
struct
fuse_req
,
list
);
req
=
list_first_entry
(
&
to_end1
,
struct
fuse_req
,
list
);
__fuse_get_request
(
req
);
__fuse_get_request
(
req
);
list_del_init
(
&
req
->
list
);
request_end
(
fc
,
req
);
request_end
(
fc
,
req
);
spin_lock
(
&
fc
->
lock
);
spin_lock
(
&
fc
->
lock
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment