~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to fs/dlm/dlm_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
 * lkb is a process copy, the nodeid specifies the lock master.
193
193
 */
194
194
 
195
 
/* lkb_ast_type */
196
 
 
197
 
#define AST_COMP                1
198
 
#define AST_BAST                2
199
 
 
200
195
/* lkb_status */
201
196
 
202
197
#define DLM_LKSTS_WAITING       1
217
212
#define DLM_IFL_USER            0x00000001
218
213
#define DLM_IFL_ORPHAN          0x00000002
219
214
 
 
215
#define DLM_CALLBACKS_SIZE      6
 
216
 
 
217
#define DLM_CB_CAST             0x00000001
 
218
#define DLM_CB_BAST             0x00000002
 
219
#define DLM_CB_SKIP             0x00000004
 
220
 
 
221
struct dlm_callback {
 
222
        uint64_t                seq;
 
223
        uint32_t                flags;          /* DLM_CBF_ */
 
224
        int                     sb_status;      /* copy to lksb status */
 
225
        uint8_t                 sb_flags;       /* copy to lksb flags */
 
226
        int8_t                  mode; /* rq mode of bast, gr mode of cast */
 
227
};
 
228
 
220
229
struct dlm_lkb {
221
230
        struct dlm_rsb          *lkb_resource;  /* the rsb */
222
231
        struct kref             lkb_ref;
236
245
 
237
246
        int8_t                  lkb_wait_type;  /* type of reply waiting for */
238
247
        int8_t                  lkb_wait_count;
239
 
        int8_t                  lkb_ast_type;   /* type of ast queued for */
240
 
        int8_t                  lkb_ast_first;  /* type of first ast queued */
241
 
 
242
 
        int8_t                  lkb_bastmode;   /* req mode of queued bast */
243
 
        int8_t                  lkb_castmode;   /* gr mode of queued cast */
244
 
        int8_t                  lkb_bastmode_done; /* last delivered bastmode */
245
 
        int8_t                  lkb_castmode_done; /* last delivered castmode */
246
248
 
247
249
        struct list_head        lkb_idtbl_list; /* lockspace lkbtbl */
248
250
        struct list_head        lkb_statequeue; /* rsb g/c/w list */
251
253
        struct list_head        lkb_astqueue;   /* need ast to be sent */
252
254
        struct list_head        lkb_ownqueue;   /* list of locks for a process */
253
255
        struct list_head        lkb_time_list;
254
 
        ktime_t                 lkb_time_bast;  /* for debugging */
255
256
        ktime_t                 lkb_timestamp;
256
257
        unsigned long           lkb_timeout_cs;
257
258
 
 
259
        struct dlm_callback     lkb_callbacks[DLM_CALLBACKS_SIZE];
 
260
        struct dlm_callback     lkb_last_cast;
 
261
        struct dlm_callback     lkb_last_bast;
 
262
        ktime_t                 lkb_last_cast_time;     /* for debugging */
 
263
        ktime_t                 lkb_last_bast_time;     /* for debugging */
 
264
 
258
265
        char                    *lkb_lvbptr;
259
266
        struct dlm_lksb         *lkb_lksb;      /* caller's status block */
260
267
        void                    (*lkb_astfn) (void *astparam);
544
551
                                          (dlm_user_proc) on the struct file,
545
552
                                          the process's locks point back to it*/
546
553
        struct dlm_lksb         lksb;
547
 
        int                     old_mode;
548
 
        int                     update_user_lvb;
549
554
        struct dlm_lksb __user  *user_lksb;
550
555
        void __user             *castparam;
551
556
        void __user             *castaddr;