History

Merge tag 'ceph-for-4.18-rc1' of git://github.com/ceph/ceph-client

Pull ceph updates from Ilya Dryomov: "The main piece is a set of libceph changes that revamps how OSD requests are aborted, improving CephFS ENOSPC handling and making "umount -f" actually work (Zheng and myself). The rest is mostly mount option handling cleanups from Chengguang and assorted fixes from Zheng, Luis and Dongsheng. * tag 'ceph-for-4.18-rc1' of git://github.com/ceph/ceph-client: (31 commits) rbd: flush rbd_dev->watch_dwork after watch is unregistered ceph: update description of some mount options ceph: show ino32 if the value is different with default ceph: strengthen rsize/wsize/readdir_max_bytes validation ceph: fix alignment of rasize ceph: fix use-after-free in ceph_statfs() ceph: prevent i_version from going back ceph: fix wrong check for the case of updating link count libceph: allocate the locator string with GFP_NOFAIL libceph: make abort_on_full a per-osdc setting libceph: don't abort reads in ceph_osdc_abort_on_full() libceph: avoid a use-after-free during map check libceph: don't warn if req->r_abort_on_full is set libceph: use for_each_request() in ceph_osdc_abort_on_full() libceph: defer __complete_request() to a workqueue libceph: move more code into __complete_request() libceph: no need to call flush_workqueue() before destruction ceph: flush pending works before shutdown super ceph: abort osd requests on force umount libceph: introduce ceph_osdc_abort_requests() ...

Linus Torvalds committed 8 years ago

Commit dc594c32 parents e7655d2 23edca815 files · +372 −256Browse files

Showing the changes to include/linux (3 of 15 files). Show all

Unified · Split

3 files
  1. include/linux/ceph/ceph_fs.h +1 −0
  2. include/linux/ceph/osd_client.h +6 −2
  3. include/linux/ceph/osdmap.h +4 −4
include/linux/ceph/ceph_fs.h+1−0
@@ -628,6 +628,7 @@ int ceph_flags_to_mode(int flags); · 627 unmodified lines
628628 CEPH_CAP_XATTR_SHARED)
629629 #define CEPH_STAT_CAP_INLINE_DATA (CEPH_CAP_FILE_SHARED | \
630630 CEPH_CAP_FILE_RD)
631+#define CEPH_STAT_RSTAT CEPH_CAP_FILE_WREXTEND
631632
632633 #define CEPH_CAP_ANY_SHARED (CEPH_CAP_AUTH_SHARED | \
633634 CEPH_CAP_LINK_SHARED | \
include/linux/ceph/osd_client.h+6−2
@@ -170,6 +170,7 @@ struct ceph_osd_request { · 169 unmodified lines
170170 u64 r_tid; /* unique for this client */
171171 struct rb_node r_node;
172172 struct rb_node r_mc_node; /* map check */
173+ struct work_struct r_complete_work;
173174 struct ceph_osd *r_osd;
174175
175176 struct ceph_osd_request_target r_t;
@@ -201,7 +202,6 @@ struct ceph_osd_request { · 25 unmodified lines
201202 struct timespec r_mtime; /* ditto */
202203 u64 r_data_offset; /* ditto */
203204 bool r_linger; /* don't resend on failure */
204− bool r_abort_on_full; /* return ENOSPC when full */
205205
206206 /* internal */
207207 unsigned long r_stamp; /* jiffies, send or check time */
@@ -347,6 +347,8 @@ struct ceph_osd_client { · 139 unmodified lines
347347 struct rb_root linger_map_checks;
348348 atomic_t num_requests;
349349 atomic_t num_homeless;
350+ bool abort_on_full; /* abort w/ ENOSPC when full */
351+ int abort_err;
350352 struct delayed_work timeout_work;
351353 struct delayed_work osds_timeout_work;
352354 #ifdef CONFIG_DEBUG_FS
@@ -359,6 +361,7 @@ struct ceph_osd_client { · 6 unmodified lines
359361 struct ceph_msgpool msgpool_op_reply;
360362
361363 struct workqueue_struct *notify_wq;
364+ struct workqueue_struct *completion_wq;
362365 };
363366
364367 static inline bool ceph_osdmap_flag(struct ceph_osd_client *osdc, int flag)
@@ -378,6 +381,7 @@ extern void ceph_osdc_handle_reply(struct ceph_osd_client *osdc, · 13 unmodified lines
378381 extern void ceph_osdc_handle_map(struct ceph_osd_client *osdc,
379382 struct ceph_msg *msg);
380383 void ceph_osdc_update_epoch_barrier(struct ceph_osd_client *osdc, u32 eb);
384+void ceph_osdc_abort_requests(struct ceph_osd_client *osdc, int err);
381385
382386 extern void osd_req_op_init(struct ceph_osd_request *osd_req,
383387 unsigned int which, u16 opcode, u32 flags);
@@ -440,7 +444,7 @@ extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *, · 56 unmodified lines
440444 struct page **pages, u64 length,
441445 u32 alignment, bool pages_from_pool,
442446 bool own_pages);
443−extern void osd_req_op_cls_init(struct ceph_osd_request *osd_req,
447+extern int osd_req_op_cls_init(struct ceph_osd_request *osd_req,
444448 unsigned int which, u16 opcode,
445449 const char *class, const char *method);
446450 extern int osd_req_op_xattr_init(struct ceph_osd_request *osd_req, unsigned int which,
include/linux/ceph/osdmap.h+4−4
@@ -279,10 +279,10 @@ bool ceph_osds_changed(const struct ceph_osds *old_acting, · 278 unmodified lines
279279 const struct ceph_osds *new_acting,
280280 bool any_change);
281281
282−int __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi,
283− const struct ceph_object_id *oid,
284− const struct ceph_object_locator *oloc,
285− struct ceph_pg *raw_pgid);
282+void __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi,
283+ const struct ceph_object_id *oid,
284+ const struct ceph_object_locator *oloc,
285+ struct ceph_pg *raw_pgid);
286286 int ceph_object_locator_to_pg(struct ceph_osdmap *osdmap,
287287 const struct ceph_object_id *oid,
288288 const struct ceph_object_locator *oloc,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t