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
13143d2d
Commit
13143d2d
authored
May 12, 2011
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rbd: warn on update_snaps failure on notify
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
9d6fcb08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/block/rbd.c
drivers/block/rbd.c
+6
-1
No files found.
drivers/block/rbd.c
View file @
13143d2d
...
@@ -1191,14 +1191,19 @@ static int rbd_req_sync_notify_ack(struct rbd_device *dev,
...
@@ -1191,14 +1191,19 @@ static int rbd_req_sync_notify_ack(struct rbd_device *dev,
static
void
rbd_watch_cb
(
u64
ver
,
u64
notify_id
,
u8
opcode
,
void
*
data
)
static
void
rbd_watch_cb
(
u64
ver
,
u64
notify_id
,
u8
opcode
,
void
*
data
)
{
{
struct
rbd_device
*
dev
=
(
struct
rbd_device
*
)
data
;
struct
rbd_device
*
dev
=
(
struct
rbd_device
*
)
data
;
int
rc
;
if
(
!
dev
)
if
(
!
dev
)
return
;
return
;
dout
(
"rbd_watch_cb %s notify_id=%lld opcode=%d
\n
"
,
dev
->
obj_md_name
,
dout
(
"rbd_watch_cb %s notify_id=%lld opcode=%d
\n
"
,
dev
->
obj_md_name
,
notify_id
,
(
int
)
opcode
);
notify_id
,
(
int
)
opcode
);
mutex_lock_nested
(
&
ctl_mutex
,
SINGLE_DEPTH_NESTING
);
mutex_lock_nested
(
&
ctl_mutex
,
SINGLE_DEPTH_NESTING
);
__rbd_update_snaps
(
dev
);
rc
=
__rbd_update_snaps
(
dev
);
mutex_unlock
(
&
ctl_mutex
);
mutex_unlock
(
&
ctl_mutex
);
if
(
rc
)
pr_warning
(
DRV_NAME
"%d got notification but failed to update"
" snaps: %d
\n
"
,
dev
->
major
,
rc
);
rbd_req_sync_notify_ack
(
dev
,
ver
,
notify_id
,
dev
->
obj_md_name
);
rbd_req_sync_notify_ack
(
dev
,
ver
,
notify_id
,
dev
->
obj_md_name
);
}
}
...
...
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