We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 396ea16 commit 7acae61Copy full SHA for 7acae61
fs/ceph/caps.c
@@ -2274,6 +2274,8 @@ static int unsafe_request_wait(struct inode *inode)
2274
list_for_each_entry(req, &ci->i_unsafe_dirops,
2275
r_unsafe_dir_item) {
2276
s = req->r_session;
2277
+ if (!s)
2278
+ continue;
2279
if (unlikely(s->s_mds >= max_sessions)) {
2280
spin_unlock(&ci->i_unsafe_lock);
2281
for (i = 0; i < max_sessions; i++) {
@@ -2294,6 +2296,8 @@ static int unsafe_request_wait(struct inode *inode)
2294
2296
list_for_each_entry(req, &ci->i_unsafe_iops,
2295
2297
r_unsafe_target_item) {
2298
2299
2300
2301
2302
2303
0 commit comments