quota: Push dqio_sem down to ->read_dqblk()
[sfrench/cifs-2.6.git] / fs / quota / dquot.c
index 8b52e852eba253da4b20cb4de295072831d028a1..46046523abf0fc55216ae958a9cfb254dccb1b05 100644 (file)
@@ -403,11 +403,8 @@ int dquot_acquire(struct dquot *dquot)
        struct quota_info *dqopt = sb_dqopt(dquot->dq_sb);
 
        mutex_lock(&dquot->dq_lock);
-       if (!test_bit(DQ_READ_B, &dquot->dq_flags)) {
-               down_read(&dqopt->dqio_sem);
+       if (!test_bit(DQ_READ_B, &dquot->dq_flags))
                ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot);
-               up_read(&dqopt->dqio_sem);
-       }
        if (ret < 0)
                goto out_iolock;
        /* Make sure flags update is visible after dquot has been filled */