Project

General

Profile

Actions

Subtask #4126

closed

Feature #2770: krbd: define tasks to add osd_client compound class op support

kernel osd client: kill off some dead code

Added by Alex Elder about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

While looking through how to implement multiple ops I have
noticed that there's some dead code in the osd client, or
in some cases code that looks promising but is never actually
used in the kernel (maybe just half implemented). Its presence
unnecessarily complicates the process of changing how things
work, so I want to just clear all that out to simplify things.

To be of most benefit, this should probably be done early.

Here are two examples, but once you start down this path
other things typically emerge that result in removal or
simplification of things:
- osd_req_encode_op() handles encoding some ops that are
never used, including CEPH_OSD_OP_*ETXATTR. Here I'd
remove the code associated with them but handle these
values gracefully (reporting a warning message).
- ceph_osdc_writepages() has only one caller, and four
of the values it provides are constants and can therefore
be eliminated.

Actions

Also available in: Atom PDF