diff options
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index be7ed503f012..8d5450f3c3ef 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1316,11 +1316,6 @@ void gfs2_glock_cb(void *cb_data, unsigned int type, void *data) | |||
1316 | wake_up_process(sdp->sd_recoverd_process); | 1316 | wake_up_process(sdp->sd_recoverd_process); |
1317 | return; | 1317 | return; |
1318 | 1318 | ||
1319 | case LM_CB_DROPLOCKS: | ||
1320 | gfs2_gl_hash_clear(sdp, NO_WAIT); | ||
1321 | gfs2_quota_scan(sdp); | ||
1322 | return; | ||
1323 | |||
1324 | default: | 1319 | default: |
1325 | gfs2_assert_warn(sdp, 0); | 1320 | gfs2_assert_warn(sdp, 0); |
1326 | return; | 1321 | return; |
@@ -1508,11 +1503,10 @@ static void clear_glock(struct gfs2_glock *gl) | |||
1508 | * @sdp: the filesystem | 1503 | * @sdp: the filesystem |
1509 | * @wait: wait until it's all gone | 1504 | * @wait: wait until it's all gone |
1510 | * | 1505 | * |
1511 | * Called when unmounting the filesystem, or when inter-node lock manager | 1506 | * Called when unmounting the filesystem. |
1512 | * requests DROPLOCKS because it is running out of capacity. | ||
1513 | */ | 1507 | */ |
1514 | 1508 | ||
1515 | void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait) | 1509 | void gfs2_gl_hash_clear(struct gfs2_sbd *sdp) |
1516 | { | 1510 | { |
1517 | unsigned long t; | 1511 | unsigned long t; |
1518 | unsigned int x; | 1512 | unsigned int x; |
@@ -1527,7 +1521,7 @@ void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait) | |||
1527 | cont = 1; | 1521 | cont = 1; |
1528 | } | 1522 | } |
1529 | 1523 | ||
1530 | if (!wait || !cont) | 1524 | if (!cont) |
1531 | break; | 1525 | break; |
1532 | 1526 | ||
1533 | if (time_after_eq(jiffies, | 1527 | if (time_after_eq(jiffies, |