Remove compress.io_mutex

This commit is contained in:
Tom Marshall 2019-10-30 10:08:31 -07:00
parent e58d404811
commit 8c7adec85d
1 changed files with 0 additions and 4 deletions

View File

@ -55,7 +55,6 @@ struct compress
struct cbd_params params;
struct lbdcache* lc;
struct mutex io_mutex;
struct workqueue_struct* io_workq;
bool io_failed;
};
@ -164,7 +163,6 @@ compress_open(struct compress* c, u64 dev_nr_pblks)
goto out;
}
mutex_init(&c->io_mutex);
c->io_workq = alloc_workqueue("compress_io", WQ_HIGHPRI | WQ_MEM_RECLAIM, 1);
if (!c->io_workq) {
printk(KERN_ERR "%s: failed to alloc io_workq\n", __func__);
@ -279,7 +277,6 @@ compress_io(struct compress_io* cio)
struct compress* c = cio->c;
struct bio* bio = cio->bio;
mutex_lock(&c->io_mutex);
switch (bio_op(bio)) {
case REQ_OP_READ:
ret = compress_read(c, bio);
@ -291,7 +288,6 @@ compress_io(struct compress_io* cio)
printk(KERN_ERR "%s: unknown op in bio: %u\n", __func__, bio_op(bio));
ret = -EINVAL;
}
mutex_unlock(&c->io_mutex);
if (ret) {
printk(KERN_ERR "%s: failed, ret=%d\n", __func__, ret);
}